mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 02:57:50 +08:00
fix: message unit test
This commit is contained in:
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…
Reference in New Issue
Block a user