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 3c790be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/icon/__tests__/index.test.js
Expand Up @@ -241,6 +241,10 @@ describe('utils', () => {
expect(errorSpy).toHaveBeenLastCalledWith(
"Warning: [antd: Icon] Icon 'canlendar' is typo and depracated, please use 'calendar' instead.",
);
render(<Icon type="colum-height" theme="twoTone" />);
expect(errorSpy).toHaveBeenLastCalledWith(
"Warning: [antd: Icon] Icon 'colum-height' is typo and depracated, please use 'column-height' instead.",
);
expect(errorSpy).toHaveBeenCalledTimes(3);
errorSpy.mockRestore();
});
Expand Down

0 comments on commit 3c790be

Please sign in to comment.