Skip to content

Commit

Permalink
fix tests for side nav keyboard support
Browse files Browse the repository at this point in the history
  • Loading branch information
JKMarkowski committed May 29, 2020
1 parent ca785e5 commit 1123133
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('NestedListKeyboardSupportService', () => {

spyOn(items[1], 'focus').and.callThrough();

const keyboardEvent: any = { preventDefault: () => {}, key: 'ArrowRight' };
const keyboardEvent: any = { preventDefault: () => {}, key: 'ArrowDown' };

(<any>service)._handleKeyDown(keyboardEvent, 0, items);

Expand Down Expand Up @@ -109,7 +109,7 @@ describe('NestedListKeyboardSupportService', () => {

spyOn(items[items.length - 1], 'focus').and.callThrough();

const keyboardEvent: any = { preventDefault: () => {}, key: 'ArrowLeft' };
const keyboardEvent: any = { preventDefault: () => {}, key: 'ArrowUp' };

(<any>service)._handleKeyDown(keyboardEvent, 0, items);

Expand All @@ -124,7 +124,7 @@ describe('NestedListKeyboardSupportService', () => {

spyOn(items[0], 'focus').and.callThrough();

const keyboardEvent: any = { preventDefault: () => {}, key: 'ArrowRight' };
const keyboardEvent: any = { preventDefault: () => {}, key: 'ArrowDown' };

(<any>service)._handleKeyDown(keyboardEvent, items.length - 1, items);

Expand Down

0 comments on commit 1123133

Please sign in to comment.