Skip to content

Commit

Permalink
chore(Icon): adds tests
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Jun 13, 2024
1 parent 282a2c3 commit d961d95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe('Icon component', () => {
).toBe('custom-data-testid-value')
})

it('should not break when icon provided is a functional component with a hook', () => {
it('should work when icon property is provided a functional component with a hook', () => {
const FunctionalComponentWithHookIcon = () => {
const [title] = React.useState('banana')

Expand Down

0 comments on commit d961d95

Please sign in to comment.