Skip to content

Commit 1d65e12

Browse files
MAGETWO-95501: Checkout page does not provide shipping methods option on cloud env
- fix test
1 parent bc60bdd commit 1d65e12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Checkout/frontend/js/model/error-processor.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ define([
1515
'mage/url': {
1616
/** Method stub. */
1717
build: jasmine.createSpy()
18-
}
18+
},
19+
'Magento_Ui/js/model/messageList': jasmine.createSpy('globalList')
1920
},
2021
model;
2122

@@ -58,6 +59,7 @@ define([
5859
it('check on failed status', function () {
5960
var messageContainer = jasmine.createSpyObj('globalMessageList', ['addErrorMessage']);
6061

62+
spyOn(window.location, 'replace').and.callFake(function () {});
6163
model.process({
6264
status: 401,
6365
responseText: ''

0 commit comments

Comments
 (0)