Skip to content

Commit a58ac4f

Browse files
committed
fixup! test(cdk-experimental/ui-patterns): listbox navigation tests
1 parent 266ce52 commit a58ac4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ describe('Listbox Pattern', () => {
145145

146146
it('should navigate to the last option on End', () => {
147147
const event = createKeyboardEvent('keydown', 35, 'End');
148-
const {listbox, options} = getDefaultPatterns();
148+
const {listbox} = getDefaultPatterns();
149149
expect(listbox.inputs.activeIndex()).toBe(0);
150150
listbox.onKeydown(event);
151-
expect(listbox.inputs.activeIndex()).toBe(options().length - 1);
151+
expect(listbox.inputs.activeIndex()).toBe(8);
152152
});
153153
});
154154
});

0 commit comments

Comments
 (0)