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 18564ed commit a1d1aceCopy full SHA for a1d1ace
dev/tests/js/jasmine/tests/lib/mage/backend/bootstrap.test.js
@@ -22,11 +22,20 @@ define([
22
23
describe('"sendPostponeRequest" method', function () {
24
it('should insert "Error" notification if request failed', function () {
25
+ var data = {
26
+ jqXHR: {
27
+ responseText: 'error',
28
+ status: '503',
29
+ readyState: 4
30
+ },
31
+ textStatus: 'error'
32
+ };
33
+
34
$pageMainActions.appendTo('body');
35
$('body').notification();
36
37
// eslint-disable-next-line jquery-no-event-shorthand
- $.ajaxSettings.error();
38
+ $.ajaxSettings.error(data.jqXHR, data.textStatus);
39
40
expect($('.message-error').length).toBe(1);
41
expect(
0 commit comments