From 3c790beefbc77bd93d4b552153ebf0b665769d8d Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 4 Jul 2019 14:25:06 +0800 Subject: [PATCH] :white_check_mark: add test case --- components/icon/__tests__/index.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/icon/__tests__/index.test.js b/components/icon/__tests__/index.test.js index 22fd760f8567..45e1abe73c03 100644 --- a/components/icon/__tests__/index.test.js +++ b/components/icon/__tests__/index.test.js @@ -241,6 +241,10 @@ describe('utils', () => { expect(errorSpy).toHaveBeenLastCalledWith( "Warning: [antd: Icon] Icon 'canlendar' is typo and depracated, please use 'calendar' instead.", ); + render(); + expect(errorSpy).toHaveBeenLastCalledWith( + "Warning: [antd: Icon] Icon 'colum-height' is typo and depracated, please use 'column-height' instead.", + ); expect(errorSpy).toHaveBeenCalledTimes(3); errorSpy.mockRestore(); });