Skip to content

Commit 36e004b

Browse files
committed
Fix setupSpec tests expecting addFiles without a file being added
1 parent 7402d0c commit 36e004b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/setupSpec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('setup', function() {
6969
var event = document.createEvent('MouseEvents');
7070
event.initEvent('change', true, true);
7171
input.dispatchEvent(event);
72-
expect(addFiles).toHaveBeenCalled();
72+
expect(addFiles).not.toHaveBeenCalled();
7373
});
7474

7575
it('assign to div', function() {
@@ -83,7 +83,7 @@ describe('setup', function() {
8383
var event = document.createEvent('MouseEvents');
8484
event.initEvent('change', true, true);
8585
input.dispatchEvent(event);
86-
expect(addFiles).toHaveBeenCalled();
86+
expect(addFiles).not.toHaveBeenCalled();
8787
});
8888

8989
it('single file', function() {
@@ -120,4 +120,4 @@ describe('setup', function() {
120120
});
121121
});
122122

123-
});
123+
});

0 commit comments

Comments
 (0)