Skip to content

Commit 5200534

Browse files
committed
fix(tests): fix a failing test
1 parent 49ddfc8 commit 5200534

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

projects/igniteui-angular/grids/core/src/state.directive.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { IgxColumnComponent, IgxColumnGroupComponent, IgxColumnLayoutComponent,
1919
import { IColumnState, IGridState } from './state-base.directive';
2020
import { IgxGridComponent } from 'igniteui-angular/grids/grid';
2121

22-
describe('IgxGridState - input properties #grid', () => {
22+
fdescribe('IgxGridState - input properties #grid', () => {
2323
beforeEach(waitForAsync(() => {
2424
TestBed.configureTestingModule({
2525
imports: [
@@ -842,7 +842,7 @@ describe('IgxGridState - input properties #grid', () => {
842842
expect(grid.groupingExpressions[0].owner).toBe(owner, 'owner should be set before getState');
843843

844844
const serializedState = state.getState(false, 'groupBy') as IGridState;
845-
const serializedGroupBy = serializedState.groupBy as Array<IGroupingExpression & { owner?: unknown }>;
845+
const serializedGroupBy = (serializedState.groupBy?.expressions ?? []) as Array<IGroupingExpression & { owner?: unknown }>;
846846

847847
expect(serializedGroupBy.length).toBe(1, 'serialized groupBy state should contain the configured expression');
848848
expect(serializedGroupBy[0].strategy).toBeUndefined('strategy should be removed from serialized groupBy expressions');

0 commit comments

Comments
 (0)