Skip to content

Commit aa0375a

Browse files
test(icon): fix coverage
1 parent 4f6e941 commit aa0375a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/icon.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,10 @@ describe('Icon', () => {
4848
expect(Icon.html().indexOf(type)>-1).toEqual(true)
4949
})
5050

51+
it('should render the right name', () => {
52+
const name = 'test'
53+
const Comp = mount(<_Icon name={name}/>)
54+
expect(Comp.html().indexOf(name)>-1).toEqual(true)
55+
})
56+
5157
})

0 commit comments

Comments
 (0)