File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
7171 } ) ;
7272 it ( 'should allow showing custom aggregations via pivot configuration.' , ( ) => {
7373 const pivotGrid = fixture . componentInstance . pivotGrid ;
74+ pivotGrid . pivotConfiguration . values = [ ] ;
7475 pivotGrid . pivotConfiguration . values . push ( {
7576 member : 'AmountOfSale' ,
7677 displayName : 'Amount of Sale' ,
@@ -114,9 +115,9 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
114115 // check chip and row values
115116 content = valueChip . querySelector ( '.igx-chip__content' ) ;
116117 expect ( content . textContent . trim ( ) ) . toBe ( 'MIN(Amount of Sale)' ) ;
117- expect ( pivotGrid . gridAPI . get_cell_by_index ( 0 , 'Bulgaria-AmountOfSale ' ) . value ) . toBe ( 3612.42 ) ;
118- expect ( pivotGrid . gridAPI . get_cell_by_index ( 0 , 'USA-AmountOfSale ' ) . value ) . toBe ( 0 ) ;
119- expect ( pivotGrid . gridAPI . get_cell_by_index ( 0 , 'Uruguay-AmountOfSale ' ) . value ) . toBe ( 242.08 ) ;
118+ expect ( pivotGrid . gridAPI . get_cell_by_index ( 0 , 'Bulgaria' ) . value ) . toBe ( 3612.42 ) ;
119+ expect ( pivotGrid . gridAPI . get_cell_by_index ( 0 , 'USA' ) . value ) . toBe ( 0 ) ;
120+ expect ( pivotGrid . gridAPI . get_cell_by_index ( 0 , 'Uruguay' ) . value ) . toBe ( 242.08 ) ;
120121 } ) ;
121122 } ) ;
122123} ) ;
You can’t perform that action at this time.
0 commit comments