File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
dev/tests/js/jasmine/tests/lib/mage/gallery Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 3
3
* See COPYING.txt for license details.
4
4
*/
5
5
6
+ /* eslint-disable max-nested-callbacks */
6
7
define ( [
7
8
'mage/gallery/gallery' ,
8
9
'jquery'
@@ -83,20 +84,22 @@ define([
83
84
describe ( '"initGallery" method' , function ( ) {
84
85
it ( 'Verify gallery initialization' , function ( ) {
85
86
originSpy = $ . fn . data ;
86
- jqueryDataMock = {
87
+ jqueryDataMock = {
87
88
setOptions : jasmine . createSpy ( ) . and . returnValue ( true ) ,
88
89
updateOptions : jasmine . createSpy ( ) . and . returnValue ( true )
89
- }
90
- spyOn ( $ . fn , 'data' ) . and . callFake ( function ( ) { return jqueryDataMock } ) ;
91
-
90
+ } ;
91
+ spyOn ( $ . fn , 'data' ) . and . callFake ( function ( ) {
92
+ return jqueryDataMock ;
93
+ } ) ;
94
+
92
95
gallery = new Gallery ( options , element ) ;
93
96
expect ( gallery . settings . $elementF . class ) . toBe ( element [ 1 ] ) ;
94
97
expect ( gallery . settings . fullscreenConfig ) . toBeDefined ( ) ;
95
98
expect ( gallery . settings . fotoramaApi ) . toBeDefined ( ) ;
96
99
expect ( gallery . settings . data ) . toBeDefined ( ) ;
97
100
expect ( gallery . settings . api ) . toBeDefined ( ) ;
98
101
99
- $ . fn . data = originSpy ;
102
+ $ . fn . data = originSpy ;
100
103
} ) ;
101
104
} ) ;
102
105
} ) ;
You can’t perform that action at this time.
0 commit comments