Skip to content

Commit

Permalink
nix explicit displayName set; add test
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbot committed Aug 1, 2018
1 parent 390c850 commit cb2129a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/UnderlineNavLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export default function UnderlineNavLink({children, selected, tag: Tag, ...rest}
)
}

UnderlineNavLink.displayName = 'UnderlineNavLink'

UnderlineNavLink.defaultProps = {
tag: 'a'
}
Expand Down
4 changes: 4 additions & 0 deletions src/__tests__/UnderlineNavLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ describe('Caret', () => {
it('respects padding utility prop', () => {
expect(rendersClass(<UnderlineNavLink p={4} />, 'p-4')).toEqual(true)
})

it('has the right displayName', () => {
expect(UnderlineNavLink.displayName).toEqual('UnderlineNavLink')
})
})

0 comments on commit cb2129a

Please sign in to comment.