7
7
*/
8
8
/*eslint max-nested-callbacks: 0*/
9
9
define ( [ 'Magento_Bundle/js/components/bundle-dynamic-rows-grid' ] ,
10
- function ( BundleDynamicRowsGrid ) {
10
+ function ( BundleDynamicRowsGrid ) {
11
11
'use strict' ;
12
12
13
13
describe ( 'Magento_Bundle/js/components/bundle-dynamic-rows-grid' , function ( ) {
@@ -17,10 +17,9 @@ define(['Magento_Bundle/js/components/bundle-dynamic-rows-grid'],
17
17
dynamicRowsGrid = new BundleDynamicRowsGrid ( ) ;
18
18
} ) ;
19
19
20
- describe ( 'test parseProcessingAddChild method' , function ( ) {
20
+ describe ( 'test parseProcessingAddChild method' , function ( ) {
21
21
it ( 'Check the processingAddChild method should call when recordIndex is a valid number' , function ( ) {
22
- let data = [ 4 ] ;
23
- let newData = [ 4 ] ;
22
+ let data = [ 4 ] , newData = [ 4 ] ;
24
23
25
24
spyOn ( dynamicRowsGrid , 'processingAddChild' ) . and . callThrough ( ) ;
26
25
@@ -29,16 +28,16 @@ define(['Magento_Bundle/js/components/bundle-dynamic-rows-grid'],
29
28
expect ( dynamicRowsGrid . processingAddChild ) . toHaveBeenCalled ( ) ;
30
29
} ) ;
31
30
32
- it ( 'Check the processingAddChild method should not call when recordIndex is inValid number' , function ( ) {
33
- let data = NaN ;
34
- let newData = [ 2 ] ;
31
+ it ( 'Check the processingAddChild method should not call when recordIndex is inValid number' ,
32
+ function ( ) {
33
+ let data = NaN , newData = [ 2 ] ;
35
34
36
- spyOn ( dynamicRowsGrid , 'processingAddChild' ) . and . callThrough ( ) ;
35
+ spyOn ( dynamicRowsGrid , 'processingAddChild' ) . and . callThrough ( ) ;
37
36
38
- dynamicRowsGrid . parseProcessingAddChild ( data , newData ) ;
37
+ dynamicRowsGrid . parseProcessingAddChild ( data , newData ) ;
39
38
40
- expect ( dynamicRowsGrid . processingAddChild ) . not . toHaveBeenCalled ( ) ;
41
- } ) ;
39
+ expect ( dynamicRowsGrid . processingAddChild ) . not . toHaveBeenCalled ( ) ;
40
+ } ) ;
42
41
} ) ;
43
42
} ) ;
44
43
} ) ;
0 commit comments