fix test case failed often

This commit is contained in:
afc163 2018-08-09 20:54:23 +08:00
parent 2c4c5fc6e3
commit f2ce60cb6c

View File

@ -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', () => {