Skip to content

Commit 507be60

Browse files
MKirovaMKirova
authored andcommitted
Simplify test.
1 parent 5b3be7f commit 507be60

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)