Skip to content

Commit

Permalink
✅ add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jul 4, 2019
1 parent 221956d commit f63b9e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/icon/__tests__/index.test.js
Expand Up @@ -241,7 +241,11 @@ describe('utils', () => {
expect(errorSpy).toHaveBeenLastCalledWith(
"Warning: [antd: Icon] Icon 'canlendar' is typo and depracated, please use 'calendar' instead.",
);
expect(errorSpy).toHaveBeenCalledTimes(3);
render(<Icon type="colum-height" />);
expect(errorSpy).toHaveBeenLastCalledWith(
"Warning: [antd: Icon] Icon 'colum-height' is typo and depracated, please use 'column-height' instead.",
);
expect(errorSpy).toHaveBeenCalledTimes(4);
errorSpy.mockRestore();
});
});

0 comments on commit f63b9e7

Please sign in to comment.