From 337e0285ec32f74ef45c98b1d76b42b69542860d Mon Sep 17 00:00:00 2001 From: zy410419243 Date: Fri, 15 Mar 2019 22:31:05 +0800 Subject: [PATCH] chore: remove useless test cases --- components/upload/__tests__/upload.test.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/components/upload/__tests__/upload.test.js b/components/upload/__tests__/upload.test.js index b11c426d04..f8dbf9f05f 100644 --- a/components/upload/__tests__/upload.test.js +++ b/components/upload/__tests__/upload.test.js @@ -382,25 +382,6 @@ describe('Upload', () => { expect(unmountSpy).toHaveBeenCalled(); }); - it('onFileDrop should work', () => { - const wrapper = mount( - - - , - ).instance(); - wrapper.onFileDrop({ type: 'test' }); - expect(wrapper.state.dragState).toBe('test'); - }); - - it('beforeUpload should work', () => { - const wrapper = mount( - - - , - ).instance(); - expect(wrapper.beforeUpload()).toBe(true); - }); - it('corrent dragCls when type is drag', () => { const fileList = [{ status: 'uploading', uid: 'file' }]; const wrapper = mount(