fix: message unit test

This commit is contained in:
Amour1688 2020-10-17 20:53:38 +08:00
parent c97af1ac18
commit 90476bb1c5

View File

@ -121,7 +121,7 @@ describe('message', () => {
}, 0);
});
it('should allow custom icon', async () => {
message.open({ content: 'Message', icon: () => <SmileOutlined /> }); // eslint-disable-line
message.open({ content: 'Message', icon: <SmileOutlined /> });
await asyncExpect(() => {
expect(document.querySelectorAll('.anticon-smile').length).toBe(1);
}, 0);