diff --git a/src/cdk/overlay/dispatchers/overlay-keyboard-dispatcher.spec.ts b/src/cdk/overlay/dispatchers/overlay-keyboard-dispatcher.spec.ts index afc1f93512b6..9691374ed25c 100644 --- a/src/cdk/overlay/dispatchers/overlay-keyboard-dispatcher.spec.ts +++ b/src/cdk/overlay/dispatchers/overlay-keyboard-dispatcher.spec.ts @@ -142,12 +142,13 @@ describe('OverlayKeyboardDispatcher', () => { spyOn(body, 'removeEventListener'); keyboardDispatcher.add(overlayRef); - expect(body.addEventListener).toHaveBeenCalledWith('keydown', jasmine.any(Function), false); + expect(body.addEventListener).toHaveBeenCalledWith('keydown', jasmine.any(Function), undefined); overlayRef.dispose(); expect(document.body.removeEventListener).toHaveBeenCalledWith( 'keydown', jasmine.any(Function), + undefined, ); });