77 */
88/*eslint max-nested-callbacks: 0*/
99define ( [ 'Magento_Bundle/js/components/bundle-dynamic-rows-grid' ] ,
10- function ( BundleDynamicRowsGrid ) {
10+ function ( BundleDynamicRowsGrid ) {
1111 'use strict' ;
1212
1313 describe ( 'Magento_Bundle/js/components/bundle-dynamic-rows-grid' , function ( ) {
@@ -17,10 +17,9 @@ define(['Magento_Bundle/js/components/bundle-dynamic-rows-grid'],
1717 dynamicRowsGrid = new BundleDynamicRowsGrid ( ) ;
1818 } ) ;
1919
20- describe ( 'test parseProcessingAddChild method' , function ( ) {
20+ describe ( 'test parseProcessingAddChild method' , function ( ) {
2121 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 ] ;
2423
2524 spyOn ( dynamicRowsGrid , 'processingAddChild' ) . and . callThrough ( ) ;
2625
@@ -29,16 +28,16 @@ define(['Magento_Bundle/js/components/bundle-dynamic-rows-grid'],
2928 expect ( dynamicRowsGrid . processingAddChild ) . toHaveBeenCalled ( ) ;
3029 } ) ;
3130
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 ] ;
3534
36- spyOn ( dynamicRowsGrid , 'processingAddChild' ) . and . callThrough ( ) ;
35+ spyOn ( dynamicRowsGrid , 'processingAddChild' ) . and . callThrough ( ) ;
3736
38- dynamicRowsGrid . parseProcessingAddChild ( data , newData ) ;
37+ dynamicRowsGrid . parseProcessingAddChild ( data , newData ) ;
3938
40- expect ( dynamicRowsGrid . processingAddChild ) . not . toHaveBeenCalled ( ) ;
41- } ) ;
39+ expect ( dynamicRowsGrid . processingAddChild ) . not . toHaveBeenCalled ( ) ;
40+ } ) ;
4241 } ) ;
4342 } ) ;
4443 } ) ;
0 commit comments