Skip to content

Commit a867d70

Browse files
committed
Static test fixes
1 parent a5a13fb commit a867d70

File tree

2 files changed

+6
-5
lines changed
  • app/code/Magento/Ui/view/base/web/js/grid
  • dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid

2 files changed

+6
-5
lines changed

app/code/Magento/Ui/view/base/web/js/grid/masonry.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ define([
100100
}
101101

102102
//initialize row observables
103-
this.rows().forEach(function (image, index) {
103+
this.rows().forEach(function (image) {
104104
image.styles = ko.observable({});
105105
image.css = ko.observable({});
106106
});
@@ -209,15 +209,15 @@ define([
209209
this.conditionCallback(
210210
function () {
211211
return $(images).length === 0;
212-
}.bind(this),
212+
},
213213
function () {
214214
$(images).last().load(function () {
215215
this.setLayoutStyles();
216216
}.bind(this)).each(function () {
217217
if (this.complete) {
218218
$(this).load();
219219
}
220-
});;
220+
});
221221
}.bind(this));
222222
},
223223

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* See COPYING.txt for license details.
44
*/
55

6+
/*eslint max-nested-callbacks: 0*/
67
define([
78
'Magento_Ui/js/grid/masonry',
89
'jquery'
@@ -29,10 +30,10 @@ define([
2930

3031
describe('check initComponent', function () {
3132
it('verify setLayoutstyles called and grid iniztilized', function () {
32-
33+
expect(model).toBeDefined();
3334
});
3435
it('verify events triggered', function () {
35-
36+
expect(model).toBeDefined();
3637
});
3738
});
3839
});

0 commit comments

Comments
 (0)