@@ -757,8 +757,8 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
757757 } , rowChipArea , PivotDimensionType . Row ) ;
758758 pivotGrid . cdr . detectChanges ( ) ;
759759 //check chip order is updated.
760- expect ( rowChipArea . chipsList . toArray ( ) [ 0 ] ) . toBe ( rowChip2 ) ;
761- expect ( rowChipArea . chipsList . toArray ( ) [ 1 ] ) . toBe ( rowChip1 ) ;
760+ expect ( rowChipArea . chipsList . toArray ( ) [ 0 ] . id ) . toBe ( rowChip2 . id ) ;
761+ expect ( rowChipArea . chipsList . toArray ( ) [ 1 ] . id ) . toBe ( rowChip1 . id ) ;
762762 // check dimension order is updated.
763763 expect ( pivotGrid . pivotConfiguration . rows . map ( x => x . memberName ) ) . toEqual ( [ 'SellerName' , 'ProductCategory' ] ) ;
764764 } ) ;
@@ -807,8 +807,8 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
807807 } , colChipArea , PivotDimensionType . Column ) ;
808808 pivotGrid . cdr . detectChanges ( ) ;
809809 //check chip order is updated.
810- expect ( colChipArea . chipsList . toArray ( ) [ 0 ] ) . toBe ( colChip2 ) ;
811- expect ( colChipArea . chipsList . toArray ( ) [ 1 ] ) . toBe ( colChip1 ) ;
810+ expect ( colChipArea . chipsList . toArray ( ) [ 0 ] . id ) . toBe ( colChip2 . id ) ;
811+ expect ( colChipArea . chipsList . toArray ( ) [ 1 ] . id ) . toBe ( colChip1 . id ) ;
812812 // check dimension order is updated.
813813 expect ( pivotGrid . pivotConfiguration . columns . map ( x => x . memberName ) ) . toEqual ( [ 'SellerName' , 'Country' ] ) ;
814814 // check columns reflect new order of dims
@@ -846,8 +846,8 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
846846 } , valuesChipArea ) ;
847847 pivotGrid . cdr . detectChanges ( ) ;
848848 //check chip order is updated.
849- expect ( valuesChipArea . chipsList . toArray ( ) [ 0 ] ) . toBe ( valChip2 ) ;
850- expect ( valuesChipArea . chipsList . toArray ( ) [ 1 ] ) . toBe ( valChip1 ) ;
849+ expect ( valuesChipArea . chipsList . toArray ( ) [ 0 ] . id ) . toBe ( valChip2 . id ) ;
850+ expect ( valuesChipArea . chipsList . toArray ( ) [ 1 ] . id ) . toBe ( valChip1 . id ) ;
851851 // check dimension order is updated.
852852 expect ( pivotGrid . pivotConfiguration . values . map ( x => x . member ) ) . toEqual ( [ 'UnitPrice' , 'UnitsSold' ] ) ;
853853
0 commit comments