@@ -706,7 +706,7 @@ describe('Pivot pipes', () => {
706706 const rowPipeResult = rowPipe . transform ( data , pivotConfig , expansionStates ) ;
707707 const columnPipeResult = columnPipe . transform ( rowPipeResult , pivotConfig , new Map < any , boolean > ( ) ) ;
708708 const rowStatePipeResult = rowStatePipe . transform ( columnPipeResult , pivotConfig , expansionStates ) ;
709- expect ( rowStatePipeResult . length ) . toEqual ( 44 ) ;
709+ expect ( rowStatePipeResult . length ) . toEqual ( 45 ) ;
710710 expect ( rowStatePipeResult [ 0 ] [ 'AllPeriods' ] ) . toEqual ( 'All Periods' ) ;
711711 expect ( rowStatePipeResult [ 0 ] [ 'AllProducts' ] ) . toEqual ( 'All' ) ;
712712 expect ( rowStatePipeResult [ 0 ] [ 'ProductCategory' ] ) . not . toBeDefined ( ) ;
@@ -717,25 +717,25 @@ describe('Pivot pipes', () => {
717717 expect ( rowStatePipeResult [ 1 ] [ 'ProductCategory' ] ) . toEqual ( 'Clothing' ) ;
718718 expect ( rowStatePipeResult [ 1 ] [ 'City' ] ) . toEqual ( 'Sofia' ) ;
719719
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-
727720 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' ) ;
730723 expect ( rowStatePipeResult [ 11 ] [ 'City' ] ) . toEqual ( 'Sofia' ) ;
731724 expect ( rowStatePipeResult [ 11 ] [ 'Years' ] ) . toEqual ( '2021' ) ;
732725 expect ( rowStatePipeResult [ 11 ] [ 'Years_level' ] ) . toEqual ( 1 ) ;
733726
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' ) ;
740740 } ) ;
741741} ) ;
0 commit comments