This commit is contained in:
afc163 2017-10-16 21:38:14 +08:00
parent dfb3b4136b
commit 161f0800d3

View File

@ -20,10 +20,10 @@ describe('notification', () => {
});
expect(document.querySelectorAll('.ant-notification-notice').length).toBe(2);
notification.close('1');
await delay(100);
await delay(300);
expect(document.querySelectorAll('.ant-notification-notice').length).toBe(1);
notification.close('2');
await delay(100);
await delay(300);
expect(document.querySelectorAll('.ant-notification-notice').length).toBe(0);
});