Skip to content

Commit 30eb6ce

Browse files
committed
chore(*): fix group by failing test
1 parent e3ee79b commit 30eb6ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2535,6 +2535,7 @@ describe('IgxGrid - GroupBy', () => {
25352535
it('should apply custom comparer function when grouping by dragging a column into the group area', async () => {
25362536
const fix = TestBed.createComponent(GroupableGridComponent);
25372537
const grid = fix.componentInstance.instance;
2538+
const year = new Date().getFullYear().toString();
25382539
fix.detectChanges();
25392540
await wait();
25402541

@@ -2574,7 +2575,7 @@ describe('IgxGrid - GroupBy', () => {
25742575
expect(grid.groupsRecords.length).toEqual(2);
25752576
expect(grid.groupsRecords[1].records.length).toEqual(6);
25762577
for (let i = 0; i < grid.groupsRecords[1].records.length; i++) {
2577-
expect(grid.groupsRecords[1].records[i].ReleaseDate.getFullYear().toString()).toEqual('2019');
2578+
expect(grid.groupsRecords[1].records[i].ReleaseDate.getFullYear().toString()).toEqual(year);
25782579
}
25792580
});
25802581

0 commit comments

Comments
 (0)