Skip to content

Commit e16997c

Browse files
authored
test: fix listbox spec failing due to keyboard event helper update (#20060)
We landed two PRs. One that added a new usage of `createKeyboardEvent` and another one that changed the signature of `createKeyboardEvent`. This meant that the first PR adding the new instance does not account for the new function signature and CI/build is failing.
1 parent ea9293d commit e16997c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk-experimental/listbox/listbox.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ describe('CdkOption', () => {
335335
it('should focus and toggle the next item when pressing SHIFT + DOWN_ARROW', () => {
336336
let selectedOptions = optionInstances.filter(option => option.selected);
337337
const downKeyEvent =
338-
createKeyboardEvent('keydown', DOWN_ARROW, undefined, undefined, {shift: true});
338+
createKeyboardEvent('keydown', DOWN_ARROW, undefined, {shift: true});
339339

340340
expect(selectedOptions.length).toBe(0);
341341
expect(optionElements[0].hasAttribute('aria-selected')).toBeFalse();

0 commit comments

Comments
 (0)