MCPcopy Create free account
hub / github.com/angular/components / getOptions

Function getOptions

src/aria/listbox/listbox.spec.ts:880–886  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

878
879 describe(`typeahead functionality (focusMode="${focusMode}")`, () => {
880 const getOptions = () => [
881 {value: 0, label: 'Apple', disabled: false},
882 {value: 1, label: 'Apricot', disabled: false},
883 {value: 2, label: 'Banana', disabled: false},
884 {value: 3, label: 'Blueberry', disabled: false},
885 {value: 4, label: 'Orange', disabled: false},
886 ];
887
888 it('should focus the first matching option when typing characters', async () => {
889 await setupListbox({options: getOptions(), focusMode});

Callers 1

runNavigationTestsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected