Skip to content

Commit 26e5774

Browse files
authored
Minor code style fixes
1 parent f4373bc commit 26e5774

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

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

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ define([
1212
var obj;
1313

1414
beforeEach(function () {
15-
1615
/**
1716
* Dummy constructor to use for instantiation
1817
* @constructor
@@ -27,14 +26,14 @@ define([
2726
describe('"openDialog" method', function () {
2827
it('Opens dialog with provided targetElementId', function () {
2928
var options = {
30-
'targetElementId': 1
31-
};
29+
'targetElementId': 1
30+
};
3231

3332
spyOn($, 'ajax').and.callFake(
34-
function () {
33+
function () {
3534
return {
3635
/**
37-
* Succes result of ajax request
36+
* Success result of ajax request
3837
*/
3938
done: function () {
4039
obj.targetElementId = 1;
@@ -44,22 +43,21 @@ define([
4443
obj.openDialog('instance/url', 100, 100, 'title', options);
4544
obj.openDialog('instance/url', 100, 100, 'title', options);
4645
expect($.ajax.calls.count()).toBe(1);
47-
4846
});
4947

5048
it('Opens dialog with provided url param', function () {
5149
spyOn($, 'ajax').and.callFake(
52-
function () {
53-
return {
54-
/**
55-
* Succes result of ajax request
56-
*/
57-
done: function () {
58-
obj.targetElementId = 'instance/url';
59-
obj.modalLoaded = true;
60-
}
61-
};
62-
});
50+
function () {
51+
return {
52+
/**
53+
* Success result of ajax request
54+
*/
55+
done: function () {
56+
obj.targetElementId = 'instance/url';
57+
obj.modalLoaded = true;
58+
}
59+
};
60+
});
6361
obj.openDialog('instance/url', 100, 100, 'title', undefined);
6462
obj.openDialog('instance/url', 100, 100, 'title', undefined);
6563
expect($.ajax.calls.count()).toBe(1);

0 commit comments

Comments
 (0)