Skip to content

Commit

Permalink
test: fix listbox spec failing due to keyboard event helper update (a…
Browse files Browse the repository at this point in the history
…ngular#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.
  • Loading branch information
devversion authored Jul 21, 2020
1 parent ea9293d commit e16997c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk-experimental/listbox/listbox.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ describe('CdkOption', () => {
it('should focus and toggle the next item when pressing SHIFT + DOWN_ARROW', () => {
let selectedOptions = optionInstances.filter(option => option.selected);
const downKeyEvent =
createKeyboardEvent('keydown', DOWN_ARROW, undefined, undefined, {shift: true});
createKeyboardEvent('keydown', DOWN_ARROW, undefined, {shift: true});

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

0 comments on commit e16997c

Please sign in to comment.