mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-05 23:46:28 +08:00
fix test case failed often
This commit is contained in:
parent
2c4c5fc6e3
commit
f2ce60cb6c
@ -261,8 +261,8 @@ describe('Upload List', () => {
|
||||
</Upload>
|
||||
);
|
||||
wrapper.setState({});
|
||||
await delay(200);
|
||||
expect(wrapper.state().fileList[2].thumbUrl).not.toBeFalsy();
|
||||
await delay(0);
|
||||
expect(wrapper.state().fileList[2].thumbUrl).not.toBe(undefined);
|
||||
});
|
||||
|
||||
it('should non-image format file preview', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user