@@ -2,11 +2,11 @@ import { IgxNumberSummaryOperand } from '../summaries/grid-summary';
22import { IPivotConfiguration } from './pivot-grid.interface' ;
33import { IgxPivotColumnPipe , IgxPivotRowPipe } from './pivot-grid.pipes' ;
44
5- describe ( 'Pivot pipes' , ( ) => {
5+ fdescribe ( 'Pivot pipes' , ( ) => {
66 // This pipe is a pure, stateless function so no need for BeforeEach
77 const rowPipe = new IgxPivotRowPipe ( ) ;
88 const columnPipe = new IgxPivotColumnPipe ( ) ;
9-
9+ const expansionStates = new Map < any , boolean > ( ) ;
1010 const data = [
1111 { ProductCategory : 'Clothing' , UnitPrice : 12.81 , SellerName : 'Stanley' , Country : 'Bulgaria' , Date : '01/01/2021' , UnitsSold : 282 } ,
1212 { ProductCategory : 'Clothing' , UnitPrice : 49.57 , SellerName : 'Elisa' , Country : 'USA' , Date : '01/05/2019' , UnitsSold : 296 } ,
@@ -49,7 +49,7 @@ describe('Pivot pipes', () => {
4949 } ;
5050
5151 it ( 'transforms flat data to pivot data' , ( ) => {
52- const rowPipeResult = rowPipe . transform ( data , pivotConfigHierarchy . rows , pivotConfigHierarchy . values ) ;
52+ const rowPipeResult = rowPipe . transform ( data , pivotConfigHierarchy . rows , expansionStates , pivotConfigHierarchy . values ) ;
5353 const columnPipeResult = columnPipe . transform ( rowPipeResult , pivotConfigHierarchy . columns , pivotConfigHierarchy . values ) ;
5454 expect ( columnPipeResult ) . toEqual ( [
5555 {
@@ -72,7 +72,7 @@ describe('Pivot pipes', () => {
7272 member : 'ProductCategory' ,
7373 enabled : true ,
7474 childLevels : [ ]
75- } ] , pivotConfigHierarchy . values ) ;
75+ } ] , expansionStates , pivotConfigHierarchy . values ) ;
7676 expect ( rowPipeResult ) . toEqual ( [
7777 {
7878 ProductCategory : 'Clothing' , level : 0 , records : [
@@ -116,7 +116,7 @@ describe('Pivot pipes', () => {
116116 member : 'Date' ,
117117 enabled : true ,
118118 childLevels : [ ]
119- } ] , pivotConfigHierarchy . values ) ;
119+ } ] , expansionStates , pivotConfigHierarchy . values ) ;
120120
121121 expect ( rowPipeResult ) . toEqual ( [
122122 {
0 commit comments