@@ -79,7 +79,7 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
7979 checkboxes [ 1 ] . click ( ) ;
8080 fixture . detectChanges ( ) ;
8181
82- // uncheck Bikes
82+ // uncheck Bikes
8383 checkboxes [ 2 ] . click ( ) ;
8484 fixture . detectChanges ( ) ;
8585
@@ -109,19 +109,19 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
109109 checkboxes [ 1 ] . click ( ) ;
110110 fixture . detectChanges ( ) ;
111111
112- // uncheck Uruguay
112+ // uncheck Uruguay
113113 checkboxes [ 2 ] . click ( ) ;
114114 fixture . detectChanges ( ) ;
115115
116116
117- // Click 'apply' button to apply filter.
118- GridFunctions . clickApplyExcelStyleFiltering ( fixture , excelMenu , 'igx-pivot-grid' ) ;
119- fixture . detectChanges ( ) ;
117+ // Click 'apply' button to apply filter.
118+ GridFunctions . clickApplyExcelStyleFiltering ( fixture , excelMenu , 'igx-pivot-grid' ) ;
119+ fixture . detectChanges ( ) ;
120120
121- // check columns
122- const colHeaders = pivotGrid . columns . filter ( x => x . level === 0 ) . map ( x => x . header ) ;
123- const expected = [ 'USA' ] ;
124- expect ( colHeaders ) . toEqual ( expected ) ;
121+ // check columns
122+ const colHeaders = pivotGrid . columns . filter ( x => x . level === 0 ) . map ( x => x . header ) ;
123+ const expected = [ 'USA' ] ;
124+ expect ( colHeaders ) . toEqual ( expected ) ;
125125 } ) ;
126126
127127 it ( 'should apply sorting for dimension via row chip' , ( ) => {
@@ -207,14 +207,14 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
207207 aggregator : IgxTotalSaleAggregate . totalSale ,
208208 label : 'Sum of Sale'
209209 } , {
210- key : 'MIN' ,
211- aggregator : IgxTotalSaleAggregate . totalMin ,
212- label : 'Minimum of Sale'
213- } , {
214- key : 'MAX' ,
215- aggregator : IgxTotalSaleAggregate . totalMax ,
216- label : 'Maximum of Sale'
217- } ] ,
210+ key : 'MIN' ,
211+ aggregator : IgxTotalSaleAggregate . totalMin ,
212+ label : 'Minimum of Sale'
213+ } , {
214+ key : 'MAX' ,
215+ aggregator : IgxTotalSaleAggregate . totalMax ,
216+ label : 'Maximum of Sale'
217+ } ] ,
218218 enabled : true
219219 } ) ;
220220 pivotGrid . pipeTrigger ++ ;
@@ -274,8 +274,10 @@ describe('IgxPivotGrid complex hierarchy #pivotGrid', () => {
274274 const expected =
275275 {
276276 'All cities' : 'All Cities' , 'All cities_level' : 0 ,
277- ProductCategory : 'Bikes' , ProductCategory_level : 1 ,
278- 'Uruguay-AmountOfSale' : 242.08 , 'Uruguay-UnitsSold' : 68
277+ ProductCategory : 'Clothing' , ProductCategory_level : 1 ,
278+ 'Bulgaria-AmountOfSale' : 3612.42 , 'Bulgaria-UnitsSold' : 282 ,
279+ 'US-AmountOfSale' : 14672.72 , 'US-UnitsSold' : 296 ,
280+ 'Uruguay-AmountOfSale' : 31158.48 , 'Uruguay-UnitsSold' : 456
279281 } ;
280282 expect ( pivotGrid . selectedRows [ 0 ] ) . toEqual ( expected ) ;
281283
@@ -303,25 +305,28 @@ describe('IgxPivotGrid complex hierarchy #pivotGrid', () => {
303305 {
304306 AllProducts : 'AllProducts' , 'All cities' : 'All Cities' ,
305307 'All cities_level' : 0 , AllProducts_level : 0 , 'Bulgaria-UnitsSold' : 774 ,
306- 'Bulgaria-AmountOfSale' : 11509.02 , 'USA-UnitsSold' : 829 , 'USA-AmountOfSale' : 44098.85999999999 ,
307- 'Uruguay-UnitsSold' : 524 , 'Uruguay-AmountOfSale' : 31400.56
308- } , {
309- ProductCategory : 'Clothing' , 'All cities' : 'All Cities' ,
310- ProductCategory_level : 1 , 'All cities_level' : 0 , 'Bulgaria-UnitsSold' : 774 ,
311- 'Bulgaria-AmountOfSale' : 11509.02 , 'USA-UnitsSold' : 296 , 'USA-AmountOfSale' : 14672.72 ,
312- 'Uruguay-UnitsSold' : 456 , 'Uruguay-AmountOfSale' : 31158.48
308+ 'Bulgaria-AmountOfSale' : 11509.02 , 'US-UnitsSold' : 296 , 'US-AmountOfSale' : 14672.72 ,
309+ 'Uruguay-UnitsSold' : 524 , 'Uruguay-AmountOfSale' : 31400.56 ,
310+ 'UK-UnitsSold' : 293 , 'UK-AmountOfSale' : 25074.94 ,
311+ 'Japan-UnitsSold' : 240 , 'Japan-AmountOfSale' : 4351.2 ,
313312 } , {
314313 ProductCategory : 'Bikes' , 'All cities' : 'All Cities' ,
315314 ProductCategory_level : 1 , 'All cities_level' : 0 ,
316315 'Uruguay-UnitsSold' : 68 , 'Uruguay-AmountOfSale' : 242.08
316+ } , {
317+ ProductCategory : 'Clothing' , 'All cities' : 'All Cities' ,
318+ ProductCategory_level : 1 , 'All cities_level' : 0 , 'Bulgaria-UnitsSold' : 282 ,
319+ 'Bulgaria-AmountOfSale' : 3612.42 , 'US-UnitsSold' : 296 , 'US-AmountOfSale' : 14672.72 ,
320+ 'Uruguay-UnitsSold' : 456 , 'Uruguay-AmountOfSale' : 31158.48
317321 } , {
318322 ProductCategory : 'Accessories' , 'All cities' : 'All Cities' ,
319323 ProductCategory_level : 1 , 'All cities_level' : 0 ,
320- 'USA -UnitsSold' : 293 , 'USA -AmountOfSale' : 25074.94
324+ 'UK -UnitsSold' : 293 , 'UK -AmountOfSale' : 25074.94
321325 } , {
322326 ProductCategory : 'Components' , 'All cities' : 'All Cities' ,
323327 ProductCategory_level : 1 , 'All cities_level' : 0 ,
324- 'USA-UnitsSold' : 240 , 'USA-AmountOfSale' : 4351.2
328+ 'Japan-UnitsSold' : 240 , 'Japan-AmountOfSale' : 4351.2 ,
329+ 'Bulgaria-UnitsSold' : 492 , 'Bulgaria-AmountOfSale' : 7896.6
325330 }
326331 ] ;
327332 expect ( pivotGrid . selectedRows ) . toEqual ( expected ) ;
0 commit comments