(init: KeyboardEventInit)
| 37 | } |
| 38 | |
| 39 | function dispatchKey(init: KeyboardEventInit): KeyboardEvent { |
| 40 | const event = new KeyboardEvent('keydown', { |
| 41 | bubbles: true, |
| 42 | cancelable: true, |
| 43 | ...init, |
| 44 | }); |
| 45 | document.body.dispatchEvent(event); |
| 46 | return event; |
| 47 | } |
| 48 | |
| 49 | describe('useDebugInspector', () => { |
| 50 | let container: HTMLDivElement; |
no outgoing calls
no test coverage detected