MCPcopy Create free account
hub / github.com/adobe/react-spectrum / keyPress

Function keyPress

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

Source from the content-addressed store, hash-verified

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

Callers 1

ListBox.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected