|
@ -379,8 +379,10 @@ describe('Upload', () => { |
|
|
); |
|
|
); |
|
|
const clearIntervalSpy = jest.spyOn(global, 'clearInterval'); |
|
|
const clearIntervalSpy = jest.spyOn(global, 'clearInterval'); |
|
|
expect(clearIntervalSpy).not.toHaveBeenCalled(); |
|
|
expect(clearIntervalSpy).not.toHaveBeenCalled(); |
|
|
|
|
|
clearIntervalSpy.mockRestore(); |
|
|
wrapper.unmount(); |
|
|
wrapper.unmount(); |
|
|
expect(clearIntervalSpy).toHaveBeenCalled(); |
|
|
expect(clearIntervalSpy).toHaveBeenCalled(); |
|
|
|
|
|
clearIntervalSpy.mockRestore(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
it('corrent dragCls when type is drag', () => { |
|
|
it('corrent dragCls when type is drag', () => { |
|
|