()
| 121 | } |
| 122 | |
| 123 | async function onceWithEventTarget() { |
| 124 | const et = new EventTarget(); |
| 125 | const event = new Event('myevent'); |
| 126 | process.nextTick(() => { |
| 127 | et.dispatchEvent(event); |
| 128 | }); |
| 129 | const [ value ] = await once(et, 'myevent'); |
| 130 | assert.strictEqual(value, event); |
| 131 | } |
| 132 | |
| 133 | async function onceWithEventTargetError() { |
| 134 | const et = new EventTarget(); |
no test coverage detected
searching dependent graphs…