From 90476bb1c5c70533b6c3a8679531ac73fec84628 Mon Sep 17 00:00:00 2001 From: Amour1688 Date: Sat, 17 Oct 2020 20:53:38 +0800 Subject: [PATCH] fix: message unit test --- components/message/__tests__/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/message/__tests__/index.test.js b/components/message/__tests__/index.test.js index f87117a21..e60232232 100644 --- a/components/message/__tests__/index.test.js +++ b/components/message/__tests__/index.test.js @@ -121,7 +121,7 @@ describe('message', () => { }, 0); }); it('should allow custom icon', async () => { - message.open({ content: 'Message', icon: () => }); // eslint-disable-line + message.open({ content: 'Message', icon: }); await asyncExpect(() => { expect(document.querySelectorAll('.anticon-smile').length).toBe(1); }, 0);