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 7762858 commit ce5473eCopy full SHA for ce5473e
dev/tests/js/jasmine/tests/app/code/Magento/Checkout/frontend/js/model/error-processor.test.js
@@ -64,17 +64,14 @@ define([
64
let messageObject = {
65
message: 'You are not authorized to access this resource.'
66
};
67
+
68
spyOn(model, 'redirectTo').and.callFake(function () {});
69
model.process({
70
status: 401,
71
responseText: ''
72
}, messageContainer);
73
expect(messageContainer.addErrorMessage)
74
.toHaveBeenCalledWith(messageObject);
- setTimeout(function () {
75
- expect(mocks['mage/url'].build).toHaveBeenCalled();
76
- done();
77
- }, 2000);
78
});
79
80
0 commit comments