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

Function event

packages/react-aria/test/combobox/useComboBox.test.js:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 let openSpy = jest.fn();
23 let toggleSpy = jest.fn();
24 let event = e => ({
25 ...e,
26 nativeEvent: {
27 isComposing: false
28 },
29 preventDefault,
30 stopPropagation
31 });
32
33 let defaultProps = {
34 items: [{id: 1, name: 'one'}],

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected