| 176 | const Simulate = TestUtils.Simulate; |
| 177 | |
| 178 | const 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 | |
| 192 | const dispatchMockKeyDownEvent = dispatchMockEvent(Simulate.keyDown); |
| 193 |
no outgoing calls
no test coverage detected
searching dependent graphs…