mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
chore: remove useless test cases
This commit is contained in:
parent
86f5255c3e
commit
337e0285ec
@ -382,25 +382,6 @@ describe('Upload', () => {
|
||||
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', () => {
|
||||
const fileList = [{ status: 'uploading', uid: 'file' }];
|
||||
const wrapper = mount(
|
||||
|
Loading…
Reference in New Issue
Block a user