chore: remove useless test cases

This commit is contained in:
zy410419243 2019-03-15 22:31:05 +08:00
parent 86f5255c3e
commit 337e0285ec

View File

@ -382,25 +382,6 @@ describe('Upload', () => {
expect(unmountSpy).toHaveBeenCalled(); expect(unmountSpy).toHaveBeenCalled();
}); });
it('onFileDrop should work', () => {
const wrapper = mount(
<Upload>
<button type="button">upload</button>
</Upload>,
).instance();
wrapper.onFileDrop({ type: 'test' });
expect(wrapper.state.dragState).toBe('test');
});
it('beforeUpload should work', () => {
const wrapper = mount(
<Upload>
<button type="button">upload</button>
</Upload>,
).instance();
expect(wrapper.beforeUpload()).toBe(true);
});
it('corrent dragCls when type is drag', () => { it('corrent dragCls when type is drag', () => {
const fileList = [{ status: 'uploading', uid: 'file' }]; const fileList = [{ status: 'uploading', uid: 'file' }];
const wrapper = mount( const wrapper = mount(