Skip to content

Commit 528d7cc

Browse files
committed
test(nav-drawer): fix failing tests, #4426
1 parent 4fec937 commit 528d7cc

File tree

2 files changed

+84
-83
lines changed

2 files changed

+84
-83
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,15 @@ describe('IgxGrid - Cell component', () => {
193193

194194
it('Should not attach doubletap handler for non-iOS', () => {
195195
const addListenerSpy = spyOn(HammerGesturesManager.prototype, 'addEventListener');
196-
spyOn(PlatformUtil, 'isIOS').and.returnValue(false);
196+
spyOn(PlatformUtil.prototype, 'isIOS').and.returnValue(false);
197197
const fix = TestBed.createComponent(DefaultGridComponent);
198198
fix.detectChanges();
199+
expect(addListenerSpy).not.toHaveBeenCalled();
199200
});
200201

201202
it('Should handle doubletap on iOS, trigger onDoubleClick event', () => {
202203
const addListenerSpy = spyOn(HammerGesturesManager.prototype, 'addEventListener');
203-
spyOn(PlatformUtil, 'isIOS').and.returnValue(true);
204+
spyOn(PlatformUtil.prototype, 'isIOS').and.returnValue(true);
204205
const fix = TestBed.createComponent(DefaultGridComponent);
205206
fix.detectChanges();
206207

0 commit comments

Comments
 (0)