Skip to content

Commit 8e77672

Browse files
committed
chore(*): fix group by failing test
1 parent 72f77f3 commit 8e77672

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
@@ -2565,6 +2565,7 @@ describe('IgxGrid - GroupBy #grid', () => {
25652565
it('should apply custom comparer function when grouping by dragging a column into the group area', async () => {
25662566
const fix = TestBed.createComponent(GroupableGridComponent);
25672567
const grid = fix.componentInstance.instance;
2568+
const year = new Date().getFullYear().toString();
25682569
fix.detectChanges();
25692570
await wait();
25702571

@@ -2604,7 +2605,7 @@ describe('IgxGrid - GroupBy #grid', () => {
26042605
expect(grid.groupsRecords.length).toEqual(2);
26052606
expect(grid.groupsRecords[1].records.length).toEqual(6);
26062607
for (let i = 0; i < grid.groupsRecords[1].records.length; i++) {
2607-
expect(grid.groupsRecords[1].records[i].ReleaseDate.getFullYear().toString()).toEqual('2019');
2608+
expect(grid.groupsRecords[1].records[i].ReleaseDate.getFullYear().toString()).toEqual(year);
26082609
}
26092610
});
26102611

0 commit comments

Comments
 (0)