Skip to content

Commit 9cd1d30

Browse files
committed
test: fix failing test
1 parent edb7612 commit 9cd1d30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cdk/overlay/dispatchers/overlay-keyboard-dispatcher.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,13 @@ describe('OverlayKeyboardDispatcher', () => {
142142
spyOn(body, 'removeEventListener');
143143

144144
keyboardDispatcher.add(overlayRef);
145-
expect(body.addEventListener).toHaveBeenCalledWith('keydown', jasmine.any(Function), false);
145+
expect(body.addEventListener).toHaveBeenCalledWith('keydown', jasmine.any(Function), undefined);
146146

147147
overlayRef.dispose();
148148
expect(document.body.removeEventListener).toHaveBeenCalledWith(
149149
'keydown',
150150
jasmine.any(Function),
151+
undefined,
151152
);
152153
});
153154

0 commit comments

Comments
 (0)