Skip to content

Commit b45b977

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Adjust test to not compare to hardcoded value.
1 parent 9889e57 commit b45b977

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid.multi-row-layout.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ describe('IgxGrid - multi-row-layout #grid', () => {
940940

941941
// check group size is correct
942942
expect(horizontalVirtualization.getSizeAt(0)).toBe(700);
943-
expect(horizontalVirtualization.getSizeAt(1)).toBe(300);
943+
expect(horizontalVirtualization.getSizeAt(1)).toBe(grid.calcWidth * 0.5);
944944

945945
// check DOM
946946
gridFirstRow = grid.rowList.first;
@@ -968,7 +968,7 @@ describe('IgxGrid - multi-row-layout #grid', () => {
968968

969969
// check group size is correct
970970
expect(horizontalVirtualization.getSizeAt(0)).toBe(700);
971-
expect(horizontalVirtualization.getSizeAt(1)).toBe(300);
971+
expect(horizontalVirtualization.getSizeAt(1)).toBe(grid.calcWidth * 0.5);
972972
expect(horizontalVirtualization.getSizeAt(2)).toBe(136 * 4);
973973

974974
// check DOM

0 commit comments

Comments
 (0)