Skip to content

Commit ce9fd5a

Browse files
refactor(hGrid.selection.spec): remove mouse events from expects
1 parent 7f894e3 commit ce9fd5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ describe('IgxHierarchicalGrid selection #hGrid', () => {
858858
GridSelectionFunctions.headerCheckboxClick(hGrid);
859859
fix.detectChanges();
860860

861-
expect(fix.componentInstance.handleHeadSelectorClick).toHaveBeenCalledWith(new MouseEvent('click'), {
861+
expect(fix.componentInstance.handleHeadSelectorClick).toHaveBeenCalledWith({
862862
selectedCount: 0,
863863
totalCount: hGrid.data.length,
864864
selectAll: jasmine.anything(),
@@ -872,7 +872,7 @@ describe('IgxHierarchicalGrid selection #hGrid', () => {
872872
GridSelectionFunctions.rowCheckboxClick(hGrid.getRowByIndex(1));
873873
fix.detectChanges();
874874

875-
expect(fix.componentInstance.handleRowSelectorClick).toHaveBeenCalledWith(new MouseEvent('click'), {
875+
expect(fix.componentInstance.handleRowSelectorClick).toHaveBeenCalledWith({
876876
index: 1,
877877
rowID: '1',
878878
selected: false,

0 commit comments

Comments
 (0)