()
| 55 | } |
| 56 | |
| 57 | async function testMergeWithAbortSignal() { |
| 58 | const merged = merge(from('data'), { signal: AbortSignal.abort() }); |
| 59 | |
| 60 | await assert.rejects( |
| 61 | async () => { |
| 62 | // eslint-disable-next-line no-unused-vars |
| 63 | for await (const _ of merged) { |
| 64 | assert.fail('Should not reach here'); |
| 65 | } |
| 66 | }, |
| 67 | { name: 'AbortError' }, |
| 68 | ); |
| 69 | } |
| 70 | |
| 71 | // Regression test: merge() with sync iterable sources |
| 72 | async function testMergeSyncSources() { |
no test coverage detected