Skip to content

Commit a483274

Browse files
Fixed static test
1 parent 4e65dc9 commit a483274

File tree

1 file changed

+8
-2
lines changed
  • dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid

1 file changed

+8
-2
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid/sortBy.test.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
define([
22
'Magento_Ui/js/grid/sortBy'
3-
], function (sortBy) {
3+
], function (SortBy) {
44
'use strict';
5+
56
describe('Magento_Ui/js/grid/sortBy', function () {
67

78
var sortByObj;
89

910
beforeEach(function () {
10-
sortByObj = new sortBy({
11+
sortByObj = new SortBy({
1112
options: []
1213
});
1314
});
@@ -20,6 +21,7 @@ define([
2021
index: 'name'
2122
}],
2223
options = [];
24+
2325
sortByObj.preparedOptions(columns);
2426
expect(sortByObj.options).toEqual(options);
2527
});
@@ -34,6 +36,7 @@ define([
3436
value: 'name',
3537
label: 'magento'
3638
}];
39+
3740
sortByObj.preparedOptions(columns);
3841
expect(sortByObj.options).toEqual(options);
3942
});
@@ -44,6 +47,7 @@ define([
4447
label: 'magento',
4548
index: 'name'
4649
}];
50+
4751
sortByObj.preparedOptions(columns);
4852
expect(sortByObj.isVisible()).toBeTruthy();
4953
});
@@ -54,6 +58,7 @@ define([
5458
label: 'magento',
5559
index: 'name'
5660
}];
61+
5762
sortByObj.preparedOptions(columns);
5863
expect(sortByObj.isVisible()).toBeFalsy();
5964
});
@@ -64,6 +69,7 @@ define([
6469
field: 'selectedOption',
6570
direction: 'desc'
6671
};
72+
6773
spyOn(sortByObj, 'selectedOption').and.returnValue('selectedOption');
6874
sortByObj.applyChanges();
6975
expect(sortByObj.applied()).toEqual(applied);

0 commit comments

Comments
 (0)