Skip to content

Commit 93418ed

Browse files
committed
chore(*): removing unnecessary test
1 parent 85424cc commit 93418ed

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,8 @@ describe('Pivot pipes #pivotGrid', () => {
319319
expect(IgxPivotTimeAggregate.latestTime(['01/01/2021 8:00', '01/01/2021 1:00', '01/01/2021 22:00'])).toEqual(new Date('01/01/2021 22:00'));
320320
expect(IgxPivotTimeAggregate.earliestTime(['01/01/2021 8:00', '01/01/2021 1:00', '01/01/2021 22:00'])).toEqual(new Date('01/01/2021 1:00'));
321321

322-
// check localization can be changed
323-
IgxPivotTimeAggregate.resourceStrings = {
324-
igx_grid_pivot_aggregate_time_earliest: 'Earliest Custom Time'
325-
};
322+
// check string can be changed
323+
IgxPivotTimeAggregate.aggregators().find(x => x.key === "EARLIEST").label = 'Earliest Custom Time';
326324

327325
expect(IgxPivotTimeAggregate.aggregators().find(x => x.key === 'EARLIEST').label).toEqual('Earliest Custom Time');
328326
});

0 commit comments

Comments
 (0)