@@ -757,8 +757,8 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
757
757
} , rowChipArea , PivotDimensionType . Row ) ;
758
758
pivotGrid . cdr . detectChanges ( ) ;
759
759
//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 ) ;
762
762
// check dimension order is updated.
763
763
expect ( pivotGrid . pivotConfiguration . rows . map ( x => x . memberName ) ) . toEqual ( [ 'SellerName' , 'ProductCategory' ] ) ;
764
764
} ) ;
@@ -807,8 +807,8 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
807
807
} , colChipArea , PivotDimensionType . Column ) ;
808
808
pivotGrid . cdr . detectChanges ( ) ;
809
809
//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 ) ;
812
812
// check dimension order is updated.
813
813
expect ( pivotGrid . pivotConfiguration . columns . map ( x => x . memberName ) ) . toEqual ( [ 'SellerName' , 'Country' ] ) ;
814
814
// check columns reflect new order of dims
@@ -846,8 +846,8 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
846
846
} , valuesChipArea ) ;
847
847
pivotGrid . cdr . detectChanges ( ) ;
848
848
//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 ) ;
851
851
// check dimension order is updated.
852
852
expect ( pivotGrid . pivotConfiguration . values . map ( x => x . member ) ) . toEqual ( [ 'UnitPrice' , 'UnitsSold' ] ) ;
853
853
0 commit comments