Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Refactor: Dependencies - Replaced with func. comp#169

Merged
priscilawebdev merged 3 commits intoverdaccio:masterfrom
antoinechalifour:refactor/116-dependencies_component
Oct 11, 2019
Merged

Refactor: Dependencies - Replaced with func. comp#169
priscilawebdev merged 3 commits intoverdaccio:masterfrom
antoinechalifour:refactor/116-dependencies_component

Conversation

@antoinechalifour
Copy link
Copy Markdown
Contributor

Type: refactor

The following has been addressed in the PR:

  • There is a related issue? #116
  • Unit or Functional tests are included in the PR Yes

Description:

Moves <Dependencies /> to Function Component syntax.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 8, 2019

Codecov Report

Merging #169 into master will increase coverage by 3.09%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #169      +/-   ##
==========================================
+ Coverage   85.06%   88.15%   +3.09%     
==========================================
  Files         107      107              
  Lines         924      912      -12     
  Branches      160      147      -13     
==========================================
+ Hits          786      804      +18     
+ Misses        124       95      -29     
+ Partials       14       13       -1
Impacted Files Coverage Δ
src/components/Dependencies/Dependencies.tsx 82.6% <85.71%> (+79.75%) ⬆️
src/components/DetailSidebar/DetailSidebar.tsx 85% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e0642a9...4e63ca2. Read the comment docs.

@antoinechalifour antoinechalifour force-pushed the refactor/116-dependencies_component branch from 093b2d1 to 795db38 Compare October 8, 2019 19:37
@antoinechalifour antoinechalifour force-pushed the refactor/116-dependencies_component branch from 795db38 to 7631d4d Compare October 8, 2019 19:54

test('Renders a link to each dependency', () => {
// Given
const packageMeta = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you could make the packageMeta reusable?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree ! We should start implementing reusable fixtures for the whole project. My next PR ;)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we use this in a separate PR ?

@antoinechalifour antoinechalifour force-pushed the refactor/116-dependencies_component branch from 7631d4d to 4e63ca2 Compare October 11, 2019 08:54
@priscilawebdev priscilawebdev merged commit 99621b6 into verdaccio:master Oct 11, 2019
@juanpicado
Copy link
Copy Markdown
Member

88% coverage great guys !!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants