Skip to content

Commit

Permalink
Static test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar65 committed May 27, 2020
1 parent a5a13fb commit a867d70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/code/Magento/Ui/view/base/web/js/grid/masonry.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ define([
}

//initialize row observables
this.rows().forEach(function (image, index) {
this.rows().forEach(function (image) {
image.styles = ko.observable({});
image.css = ko.observable({});
});
Expand Down Expand Up @@ -209,15 +209,15 @@ define([
this.conditionCallback(
function () {
return $(images).length === 0;
}.bind(this),
},
function () {
$(images).last().load(function () {
this.setLayoutStyles();
}.bind(this)).each(function () {
if (this.complete) {
$(this).load();
}
});;
});
}.bind(this));
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* See COPYING.txt for license details.
*/

/*eslint max-nested-callbacks: 0*/
define([
'Magento_Ui/js/grid/masonry',
'jquery'
Expand All @@ -29,10 +30,10 @@ define([

describe('check initComponent', function () {
it('verify setLayoutstyles called and grid iniztilized', function () {

expect(model).toBeDefined();
});
it('verify events triggered', function () {

expect(model).toBeDefined();
});
});
});
Expand Down

0 comments on commit a867d70

Please sign in to comment.