File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
dev/tests/js/jasmine/tests/app/code/Magento/PageBuilder/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -60,17 +60,20 @@ define([
60
60
cool : { }
61
61
}
62
62
} ,
63
- breakpoints : { }
63
+ breakpoints : { } ,
64
+ currentViewport : { }
64
65
} ;
65
66
66
67
widgetInitializer ( data ) ;
67
68
68
69
applyForMock = mocks [ 'mage/apply/main' ] . applyFor ;
69
70
expect ( applyForMock ) . toHaveBeenCalledWith ( jasmine . any ( Object ) , {
70
- breakpoints : { }
71
+ breakpoints : { } ,
72
+ currentViewport : { }
71
73
} , 'awesome' ) ;
72
74
expect ( applyForMock ) . toHaveBeenCalledWith ( jasmine . any ( Object ) , {
73
- breakpoints : { }
75
+ breakpoints : { } ,
76
+ currentViewport : { }
74
77
} , 'cool' ) ;
75
78
// Due to jQuery objects not being === we must use jQuery's is to validate if the elements are the same
76
79
expect ( el . is ( applyForMock . calls . mostRecent ( ) . args [ 0 ] ) ) . toBeTruthy ( ) ;
You can’t perform that action at this time.
0 commit comments