File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
projects/igniteui-angular/src/lib/grids/grid Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2565,6 +2565,7 @@ describe('IgxGrid - GroupBy #grid', () => {
2565
2565
it ( 'should apply custom comparer function when grouping by dragging a column into the group area' , async ( ) => {
2566
2566
const fix = TestBed . createComponent ( GroupableGridComponent ) ;
2567
2567
const grid = fix . componentInstance . instance ;
2568
+ const year = new Date ( ) . getFullYear ( ) . toString ( ) ;
2568
2569
fix . detectChanges ( ) ;
2569
2570
await wait ( ) ;
2570
2571
@@ -2604,7 +2605,7 @@ describe('IgxGrid - GroupBy #grid', () => {
2604
2605
expect ( grid . groupsRecords . length ) . toEqual ( 2 ) ;
2605
2606
expect ( grid . groupsRecords [ 1 ] . records . length ) . toEqual ( 6 ) ;
2606
2607
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 ) ;
2608
2609
}
2609
2610
} ) ;
2610
2611
You can’t perform that action at this time.
0 commit comments