Skip to content

Commit ce5473e

Browse files
committed
ACP2E-3541: "Something went wrong" error on checkout for inactive company
1 parent 7762858 commit ce5473e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,14 @@ define([
6464
let messageObject = {
6565
message: 'You are not authorized to access this resource.'
6666
};
67+
6768
spyOn(model, 'redirectTo').and.callFake(function () {});
6869
model.process({
6970
status: 401,
7071
responseText: ''
7172
}, messageContainer);
7273
expect(messageContainer.addErrorMessage)
7374
.toHaveBeenCalledWith(messageObject);
74-
setTimeout(function () {
75-
expect(mocks['mage/url'].build).toHaveBeenCalled();
76-
done();
77-
}, 2000);
7875
});
7976
});
8077
});

0 commit comments

Comments
 (0)