We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 266ce52 commit a58ac4fCopy full SHA for a58ac4f
src/cdk-experimental/ui-patterns/listbox/listbox.spec.ts
@@ -145,10 +145,10 @@ describe('Listbox Pattern', () => {
145
146
it('should navigate to the last option on End', () => {
147
const event = createKeyboardEvent('keydown', 35, 'End');
148
- const {listbox, options} = getDefaultPatterns();
+ const {listbox} = getDefaultPatterns();
149
expect(listbox.inputs.activeIndex()).toBe(0);
150
listbox.onKeydown(event);
151
- expect(listbox.inputs.activeIndex()).toBe(options().length - 1);
+ expect(listbox.inputs.activeIndex()).toBe(8);
152
});
153
154
0 commit comments