Skip to content

Commit d68a589

Browse files
committed
test(nav-drawer): fix failing tests, #4426
1 parent 20e70e6 commit d68a589

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
@@ -182,14 +182,15 @@ describe('IgxGrid - Cell component #grid', () => {
182182

183183
it('Should not attach doubletap handler for non-iOS', () => {
184184
const addListenerSpy = spyOn(HammerGesturesManager.prototype, 'addEventListener');
185-
spyOn(PlatformUtil, 'isIOS').and.returnValue(false);
185+
spyOn(PlatformUtil.prototype, 'isIOS').and.returnValue(false);
186186
const fix = TestBed.createComponent(DefaultGridComponent);
187187
fix.detectChanges();
188+
expect(addListenerSpy).not.toHaveBeenCalled();
188189
});
189190

190191
it('Should handle doubletap on iOS, trigger onDoubleClick event', () => {
191192
const addListenerSpy = spyOn(HammerGesturesManager.prototype, 'addEventListener');
192-
spyOn(PlatformUtil, 'isIOS').and.returnValue(true);
193+
spyOn(PlatformUtil.prototype, 'isIOS').and.returnValue(true);
193194
const fix = TestBed.createComponent(DefaultGridComponent);
194195
fix.detectChanges();
195196

0 commit comments

Comments
 (0)