[bugfix] Uploader: can not upload same file when before-read (#2971)

This commit is contained in:
neverland
2019-03-14 21:14:48 +08:00
committed by GitHub
parent 2e7ca412ff
commit d7760cf4d0
3 changed files with 13 additions and 3 deletions
+3
View File
@@ -69,8 +69,11 @@ it('before read return false', () => {
}
});
const input = wrapper.find('input');
wrapper.vm.onChange(file);
expect(afterRead.mock.calls.length).toBeFalsy();
expect(input.element.value).toEqual('');
});
test('file size overlimit', async () => {