@@ -485,9 +485,9 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
485
485
GridFunctions . clickFilterCellChip ( fix , columnName ) ;
486
486
GridFunctions . resetFilterRow ( fix ) ;
487
487
488
- expect ( grid . filtering . emit ) . toHaveBeenCalledWith ( { owner : grid , cancel : false , filteringExpressions : null } ) ;
489
- expect ( grid . filtering . emit ) . toHaveBeenCalledTimes ( 2 ) ;
490
488
const emptyFilter = new FilteringExpressionsTree ( null , columnName ) ;
489
+ expect ( grid . filtering . emit ) . toHaveBeenCalledWith ( { owner : grid , cancel : false , filteringExpressions : emptyFilter } ) ;
490
+ expect ( grid . filtering . emit ) . toHaveBeenCalledTimes ( 2 ) ;
491
491
expect ( grid . filteringDone . emit ) . toHaveBeenCalledWith ( emptyFilter ) ;
492
492
expect ( grid . filteringDone . emit ) . toHaveBeenCalledTimes ( 2 ) ;
493
493
@@ -513,9 +513,9 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
513
513
tick ( 100 ) ;
514
514
fix . detectChanges ( ) ;
515
515
516
- const args = { owner : grid , cancel : false , filteringExpressions : null } ;
517
- expect ( grid . filtering . emit ) . toHaveBeenCalledWith ( args ) ;
518
516
const emptyFilter = new FilteringExpressionsTree ( null , columnName ) ;
517
+ const args = { owner : grid , cancel : false , filteringExpressions : emptyFilter } ;
518
+ expect ( grid . filtering . emit ) . toHaveBeenCalledWith ( args ) ;
519
519
expect ( grid . filteringDone . emit ) . toHaveBeenCalledWith ( emptyFilter ) ;
520
520
} ) ) ;
521
521
@@ -852,10 +852,10 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
852
852
853
853
expect ( grid . rowList . length ) . toEqual ( 8 ) ;
854
854
855
- args . filteringExpressions = null ;
855
+ const emptyFilter = new FilteringExpressionsTree ( null , columnName ) ;
856
+ args . filteringExpressions = emptyFilter ;
856
857
expect ( grid . filtering . emit ) . toHaveBeenCalledWith ( args ) ;
857
858
expect ( grid . filtering . emit ) . toHaveBeenCalledTimes ( 2 ) ;
858
- const emptyFilter = new FilteringExpressionsTree ( null , columnName ) ;
859
859
expect ( grid . filteringDone . emit ) . toHaveBeenCalledWith ( emptyFilter ) ;
860
860
expect ( grid . filteringDone . emit ) . toHaveBeenCalledTimes ( 2 ) ;
861
861
} ) ) ;
0 commit comments