@@ -706,7 +706,7 @@ describe('Pivot pipes', () => {
706
706
const rowPipeResult = rowPipe . transform ( data , pivotConfig , expansionStates ) ;
707
707
const columnPipeResult = columnPipe . transform ( rowPipeResult , pivotConfig , new Map < any , boolean > ( ) ) ;
708
708
const rowStatePipeResult = rowStatePipe . transform ( columnPipeResult , pivotConfig , expansionStates ) ;
709
- expect ( rowStatePipeResult . length ) . toEqual ( 44 ) ;
709
+ expect ( rowStatePipeResult . length ) . toEqual ( 45 ) ;
710
710
expect ( rowStatePipeResult [ 0 ] [ 'AllPeriods' ] ) . toEqual ( 'All Periods' ) ;
711
711
expect ( rowStatePipeResult [ 0 ] [ 'AllProducts' ] ) . toEqual ( 'All' ) ;
712
712
expect ( rowStatePipeResult [ 0 ] [ 'ProductCategory' ] ) . not . toBeDefined ( ) ;
@@ -717,25 +717,25 @@ describe('Pivot pipes', () => {
717
717
expect ( rowStatePipeResult [ 1 ] [ 'ProductCategory' ] ) . toEqual ( 'Clothing' ) ;
718
718
expect ( rowStatePipeResult [ 1 ] [ 'City' ] ) . toEqual ( 'Sofia' ) ;
719
719
720
- expect ( rowStatePipeResult [ 10 ] [ 'AllPeriods' ] ) . not . toBeDefined ( ) ;
721
- expect ( rowStatePipeResult [ 10 ] [ 'ProductCategory' ] ) . not . toBeDefined ( ) ;
722
- expect ( rowStatePipeResult [ 10 ] [ 'AllProducts' ] ) . toEqual ( 'All' ) ;
723
- expect ( rowStatePipeResult [ 10 ] [ 'City' ] ) . toEqual ( 'Sofia' ) ;
724
- expect ( rowStatePipeResult [ 10 ] [ 'Years' ] ) . toEqual ( '2021' ) ;
725
- expect ( rowStatePipeResult [ 10 ] [ 'Years_level' ] ) . toEqual ( 1 ) ;
726
-
727
720
expect ( rowStatePipeResult [ 11 ] [ 'AllPeriods' ] ) . not . toBeDefined ( ) ;
728
- expect ( rowStatePipeResult [ 11 ] [ 'ProductCategory' ] ) . toEqual ( 'Clothing' ) ;
729
- expect ( rowStatePipeResult [ 11 ] [ 'AllProducts' ] ) . not . toBeDefined ( ) ;
721
+ expect ( rowStatePipeResult [ 11 ] [ 'ProductCategory' ] ) . not . toBeDefined ( ) ;
722
+ expect ( rowStatePipeResult [ 11 ] [ 'AllProducts' ] ) . toEqual ( 'All' ) ;
730
723
expect ( rowStatePipeResult [ 11 ] [ 'City' ] ) . toEqual ( 'Sofia' ) ;
731
724
expect ( rowStatePipeResult [ 11 ] [ 'Years' ] ) . toEqual ( '2021' ) ;
732
725
expect ( rowStatePipeResult [ 11 ] [ 'Years_level' ] ) . toEqual ( 1 ) ;
733
726
734
- expect ( rowStatePipeResult [ 15 ] [ 'AllPeriods' ] ) . not . toBeDefined ( ) ;
735
- expect ( rowStatePipeResult [ 15 ] [ 'ProductCategory' ] ) . not . toBeDefined ( ) ;
736
- expect ( rowStatePipeResult [ 15 ] [ 'AllProducts' ] ) . toEqual ( 'All' ) ;
737
- expect ( rowStatePipeResult [ 15 ] [ 'City' ] ) . toEqual ( 'Sofia' ) ;
738
- expect ( rowStatePipeResult [ 15 ] [ 'Years' ] ) . not . toBeDefined ( ) ;
739
- expect ( rowStatePipeResult [ 15 ] [ 'Date' ] ) . toEqual ( '01/01/2021' ) ;
727
+ expect ( rowStatePipeResult [ 12 ] [ 'AllPeriods' ] ) . not . toBeDefined ( ) ;
728
+ expect ( rowStatePipeResult [ 12 ] [ 'ProductCategory' ] ) . toEqual ( 'Clothing' ) ;
729
+ expect ( rowStatePipeResult [ 12 ] [ 'AllProducts' ] ) . not . toBeDefined ( ) ;
730
+ expect ( rowStatePipeResult [ 12 ] [ 'City' ] ) . toEqual ( 'Sofia' ) ;
731
+ expect ( rowStatePipeResult [ 12 ] [ 'Years' ] ) . toEqual ( '2021' ) ;
732
+ expect ( rowStatePipeResult [ 12 ] [ 'Years_level' ] ) . toEqual ( 1 ) ;
733
+
734
+ expect ( rowStatePipeResult [ 16 ] [ 'AllPeriods' ] ) . not . toBeDefined ( ) ;
735
+ expect ( rowStatePipeResult [ 16 ] [ 'ProductCategory' ] ) . not . toBeDefined ( ) ;
736
+ expect ( rowStatePipeResult [ 16 ] [ 'AllProducts' ] ) . toEqual ( 'All' ) ;
737
+ expect ( rowStatePipeResult [ 16 ] [ 'City' ] ) . toEqual ( 'Sofia' ) ;
738
+ expect ( rowStatePipeResult [ 16 ] [ 'Years' ] ) . not . toBeDefined ( ) ;
739
+ expect ( rowStatePipeResult [ 16 ] [ 'Date' ] ) . toEqual ( '01/01/2021' ) ;
740
740
} ) ;
741
741
} ) ;
0 commit comments