Skip to content

Commit c920ea8

Browse files
authored
Merge branch '12.1.x' into sstoychev/add-row-api-12.1
2 parents 2e08722 + 03489f3 commit c920ea8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ describe('IgxGrid - Cell selection #grid', () => {
667667
} finally {
668668
fix.detectChanges();
669669
}
670-
expect(errorMessage).toEqual('Cannot read property \'visibleIndex\' of undefined');
670+
expect(errorMessage).toContain('visibleIndex');
671671
expect(selectionChangeSpy).toHaveBeenCalledTimes(0);
672672
expect(grid.getSelectedData()).toEqual([]);
673673
expect(grid.getSelectedRanges()).toEqual([]);
@@ -699,7 +699,7 @@ describe('IgxGrid - Cell selection #grid', () => {
699699
} finally {
700700
fix.detectChanges();
701701
}
702-
expect(errorMessage).toEqual('Cannot read property \'visibleIndex\' of undefined');
702+
expect(errorMessage).toContain('visibleIndex');
703703
GridSelectionFunctions.verifySelectedRange(grid, 1, 2, 0, 1);
704704
expect(selectionChangeSpy).toHaveBeenCalledTimes(0);
705705
expect(grid.getSelectedData()).toEqual(expectedData);
@@ -718,7 +718,7 @@ describe('IgxGrid - Cell selection #grid', () => {
718718
} finally {
719719
fix.detectChanges();
720720
}
721-
expect(errorMessage).toEqual('Cannot read property \'visibleIndex\' of undefined');
721+
expect(errorMessage).toContain('visibleIndex');
722722
expect(selectionChangeSpy).toHaveBeenCalledTimes(0);
723723
expect(grid.getSelectedData()).toEqual([]);
724724
expect(grid.getSelectedRanges()).toEqual([]);

0 commit comments

Comments
 (0)