MCPcopy Index your code
hub / github.com/adobe/react-spectrum / keyPress

Function keyPress

packages/react-aria-components/test/ListBox.test.js:71–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69let renderListbox = (listBoxProps, itemProps) =>
70 render(<TestListBox {...{listBoxProps, itemProps}} />);
71let keyPress = key => {
72 fireEvent.keyDown(document.activeElement, {key});
73 fireEvent.keyUp(document.activeElement, {key});
74};
75
76describe('ListBox', () => {
77 let user;

Callers 1

ListBox.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected