Browse Source

fix test case failed often

pull/11701/head
afc163 6 years ago
parent
commit
f2ce60cb6c
  1. 4
      components/upload/__tests__/uploadlist.test.js

4
components/upload/__tests__/uploadlist.test.js

@ -261,8 +261,8 @@ describe('Upload List', () => {
</Upload> </Upload>
); );
wrapper.setState({}); wrapper.setState({});
await delay(200); await delay(0);
expect(wrapper.state().fileList[2].thumbUrl).not.toBeFalsy(); expect(wrapper.state().fileList[2].thumbUrl).not.toBe(undefined);
}); });
it('should non-image format file preview', () => { it('should non-image format file preview', () => {

Loading…
Cancel
Save