()
| 41 | } |
| 42 | |
| 43 | async function testPullWithAbortSignal() { |
| 44 | async function* gen() { |
| 45 | yield [new Uint8Array([1])]; |
| 46 | } |
| 47 | |
| 48 | const result = pull(gen(), { signal: AbortSignal.abort() }); |
| 49 | await assert.rejects( |
| 50 | async () => { |
| 51 | // eslint-disable-next-line no-unused-vars |
| 52 | for await (const _ of result) { |
| 53 | assert.fail('Should not reach here'); |
| 54 | } |
| 55 | }, |
| 56 | { name: 'AbortError' }, |
| 57 | ); |
| 58 | } |
| 59 | |
| 60 | async function testPullChainedTransforms() { |
| 61 | const enc = new TextEncoder(); |
no test coverage detected