Skip to content

Commit

Permalink
test: fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbeto committed Dec 18, 2024
1 parent bf7fc26 commit a2b050a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
});

Expand Down

0 comments on commit a2b050a

Please sign in to comment.