(type, opts)
| 36 | } |
| 37 | |
| 38 | function pointerEvent(type, opts) { |
| 39 | let evt = new Event(type, {bubbles: true, cancelable: true}); |
| 40 | Object.assign( |
| 41 | evt, |
| 42 | { |
| 43 | ctrlKey: false, |
| 44 | metaKey: false, |
| 45 | shiftKey: false, |
| 46 | button: opts.button || 0 |
| 47 | }, |
| 48 | opts |
| 49 | ); |
| 50 | return evt; |
| 51 | } |
| 52 | |
| 53 | describe('useHover', function () { |
| 54 | beforeAll(() => { |
no outgoing calls
no test coverage detected