Skip to content

Commit f4373bc

Browse files
committed
static-test fix
1 parent d407e01 commit f4373bc

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

dev/tests/js/jasmine/tests/lib/mage/browser.test.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ define([
3333
spyOn($, 'ajax').and.callFake(
3434
function () {
3535
return {
36-
done: function (data) {
37-
obj.targetElementId = 1;
38-
}
39-
}
36+
/**
37+
* Succes result of ajax request
38+
*/
39+
done: function () {
40+
obj.targetElementId = 1;
41+
}
42+
};
4043
});
4144
obj.openDialog('instance/url', 100, 100, 'title', options);
4245
obj.openDialog('instance/url', 100, 100, 'title', options);
@@ -48,11 +51,14 @@ define([
4851
spyOn($, 'ajax').and.callFake(
4952
function () {
5053
return {
51-
done: function (data) {
52-
obj.targetElementId = 'instance/url';
53-
obj.modalLoaded = true;
54-
}
55-
}
54+
/**
55+
* Succes result of ajax request
56+
*/
57+
done: function () {
58+
obj.targetElementId = 'instance/url';
59+
obj.modalLoaded = true;
60+
}
61+
};
5662
});
5763
obj.openDialog('instance/url', 100, 100, 'title', undefined);
5864
obj.openDialog('instance/url', 100, 100, 'title', undefined);

0 commit comments

Comments
 (0)