Skip to content

Commit 63590e5

Browse files
committed
chore(*): fixing more tests
1 parent a3fe385 commit 63590e5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('IgxGrid - Column Selection #grid', () => {
9797
newSelection: ['ProductID'],
9898
added: ['ProductID'],
9999
removed: [],
100-
event: new Event('mousedown'),
100+
event: jasmine.anything() as any,
101101
cancel: false
102102
};
103103
expect(grid.onColumnSelectionChange.emit).toHaveBeenCalledWith(args);
@@ -116,7 +116,7 @@ describe('IgxGrid - Column Selection #grid', () => {
116116
newSelection: ['InStock'],
117117
added: ['InStock'],
118118
removed: ['ProductID'],
119-
event: new Event('mousedown'),
119+
event: jasmine.anything() as any,
120120
cancel: false
121121
};
122122
expect(grid.onColumnSelectionChange.emit).toHaveBeenCalledWith(args);
@@ -129,7 +129,7 @@ describe('IgxGrid - Column Selection #grid', () => {
129129
newSelection: [],
130130
added: [],
131131
removed: ['InStock'],
132-
event: new Event('mousedown'),
132+
event: jasmine.anything() as any,
133133
cancel: false
134134
};
135135
expect(grid.onColumnSelectionChange.emit).toHaveBeenCalledWith(args);
@@ -376,7 +376,7 @@ describe('IgxGrid - Column Selection #grid', () => {
376376
newSelection: ['ProductID'],
377377
added: ['ProductID'],
378378
removed: [],
379-
event: new Event('mousedown'),
379+
event: jasmine.anything() as any,
380380
cancel: false
381381
};
382382
expect(grid.onColumnSelectionChange.emit).toHaveBeenCalledWith(args);
@@ -392,7 +392,7 @@ describe('IgxGrid - Column Selection #grid', () => {
392392
newSelection: ['ProductID', 'InStock'],
393393
added: ['InStock'],
394394
removed: [],
395-
event: new Event('mousedown'),
395+
event: jasmine.anything() as any,
396396
cancel: false
397397
};
398398
expect(grid.onColumnSelectionChange.emit).toHaveBeenCalledWith(args);
@@ -414,7 +414,7 @@ describe('IgxGrid - Column Selection #grid', () => {
414414
newSelection: ['ProductID', 'InStock', 'OrderDate'],
415415
added: ['OrderDate'],
416416
removed: [],
417-
event: new Event('mousedown'),
417+
event: jasmine.anything() as any,
418418
cancel: false
419419
};
420420
expect(grid.onColumnSelectionChange.emit).toHaveBeenCalledWith(args);
@@ -431,7 +431,7 @@ describe('IgxGrid - Column Selection #grid', () => {
431431
newSelection: ['ProductID', 'OrderDate'],
432432
added: [],
433433
removed: ['InStock'],
434-
event: new Event('mousedown'),
434+
event: jasmine.anything() as any,
435435
cancel: false
436436
};
437437
expect(grid.onColumnSelectionChange.emit).toHaveBeenCalledWith(args);
@@ -447,7 +447,7 @@ describe('IgxGrid - Column Selection #grid', () => {
447447
newSelection: ['OrderDate'],
448448
added: [],
449449
removed: ['ProductID'],
450-
event: new Event('mousedown'),
450+
event: jasmine.anything() as any,
451451
cancel: false
452452
};
453453
expect(grid.onColumnSelectionChange.emit).toHaveBeenCalledWith(args);
@@ -472,7 +472,7 @@ describe('IgxGrid - Column Selection #grid', () => {
472472
newSelection: ['UnitsInStock', 'InStock'],
473473
added: ['InStock'],
474474
removed: [],
475-
event: new Event('mousedown'),
475+
event: jasmine.anything() as any,
476476
cancel: false
477477
};
478478
expect(grid.onColumnSelectionChange.emit).toHaveBeenCalledWith(args);
@@ -489,7 +489,7 @@ describe('IgxGrid - Column Selection #grid', () => {
489489
newSelection: ['UnitsInStock', 'InStock', 'OrderDate'],
490490
added: ['OrderDate'],
491491
removed: [],
492-
event: new Event('mousedown'),
492+
event: jasmine.anything() as any,
493493
cancel: false
494494
};
495495
expect(grid.onColumnSelectionChange.emit).toHaveBeenCalledWith(args);
@@ -508,7 +508,7 @@ describe('IgxGrid - Column Selection #grid', () => {
508508
newSelection: ['UnitsInStock', 'InStock', 'ProductID'],
509509
added: ['ProductID'],
510510
removed: ['OrderDate'],
511-
event: new Event('mousedown'),
511+
event: jasmine.anything() as any,
512512
cancel: false
513513
};
514514
expect(grid.onColumnSelectionChange.emit).toHaveBeenCalledWith(args);

0 commit comments

Comments
 (0)