Skip to content

Commit 9d99f32

Browse files
committed
Code refactoring
1 parent 82290c6 commit 9d99f32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/form/element/file-uploader.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,6 @@ define([
360360

361361
describe('onFail handler', function () {
362362
it('it logs responseText and status', function () {
363-
spyOn(console, 'error');
364-
365363
var fakeEvent = {
366364
target: document.createElement('input')
367365
},
@@ -372,6 +370,8 @@ define([
372370
}
373371
};
374372

373+
spyOn(console, 'error');
374+
375375
component.onFail(fakeEvent, data);
376376
expect(console.error).toHaveBeenCalledWith(data.jqXHR.responseText);
377377
expect(console.error).toHaveBeenCalledWith(data.jqXHR.status);

0 commit comments

Comments
 (0)