We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc60bdd commit 1d65e12Copy full SHA for 1d65e12
dev/tests/js/jasmine/tests/app/code/Magento/Checkout/frontend/js/model/error-processor.test.js
@@ -15,7 +15,8 @@ define([
15
'mage/url': {
16
/** Method stub. */
17
build: jasmine.createSpy()
18
- }
+ },
19
+ 'Magento_Ui/js/model/messageList': jasmine.createSpy('globalList')
20
},
21
model;
22
@@ -58,6 +59,7 @@ define([
58
59
it('check on failed status', function () {
60
var messageContainer = jasmine.createSpyObj('globalMessageList', ['addErrorMessage']);
61
62
+ spyOn(window.location, 'replace').and.callFake(function () {});
63
model.process({
64
status: 401,
65
responseText: ''
0 commit comments