()
| 19 | } |
| 20 | |
| 21 | async function onceAnEventWithInvalidOptions() { |
| 22 | const ee = new EventEmitter(); |
| 23 | |
| 24 | await Promise.all([1, 'hi', null, false, () => {}, Symbol(), 1n].map((options) => { |
| 25 | return assert.rejects(once(ee, 'myevent', options), { |
| 26 | code: 'ERR_INVALID_ARG_TYPE', |
| 27 | }); |
| 28 | })); |
| 29 | } |
| 30 | |
| 31 | async function onceAnEventWithTwoArgs() { |
| 32 | const ee = new EventEmitter(); |
no test coverage detected
searching dependent graphs…