fix: message unit test
parent
c97af1ac18
commit
90476bb1c5
|
@ -121,7 +121,7 @@ describe('message', () => {
|
||||||
}, 0);
|
}, 0);
|
||||||
});
|
});
|
||||||
it('should allow custom icon', async () => {
|
it('should allow custom icon', async () => {
|
||||||
message.open({ content: 'Message', icon: () => <SmileOutlined /> }); // eslint-disable-line
|
message.open({ content: 'Message', icon: <SmileOutlined /> });
|
||||||
await asyncExpect(() => {
|
await asyncExpect(() => {
|
||||||
expect(document.querySelectorAll('.anticon-smile').length).toBe(1);
|
expect(document.querySelectorAll('.anticon-smile').length).toBe(1);
|
||||||
}, 0);
|
}, 0);
|
||||||
|
|
Loading…
Reference in New Issue