MCPcopy Create free account
hub / github.com/reactjs/react-modal / dispatchMockEvent

Function dispatchMockEvent

specs/helper.js:178–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176const Simulate = TestUtils.Simulate;
177
178const dispatchMockEvent = eventCtor => (key, code) => (element, opts) =>
179 eventCtor(
180 element,
181 Object.assign(
182 {},
183 {
184 key: key,
185 which: code
186 },
187 code,
188 opts
189 )
190 );
191
192const dispatchMockKeyDownEvent = dispatchMockEvent(Simulate.keyDown);
193

Callers 1

helper.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…