fix: message unit test

feat-dayjs
Amour1688 4 years ago
parent c97af1ac18
commit 90476bb1c5

@ -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);

Loading…
Cancel
Save