()
| 92 | write(chunk) { chunks.push(chunk); }, |
| 93 | }; |
| 94 | async function* slowSource() { |
| 95 | yield [new TextEncoder().encode('a')]; |
| 96 | await new Promise((r) => setTimeout(r, 50)); |
| 97 | yield [new TextEncoder().encode('b')]; |
| 98 | } |
| 99 | ac.abort(); |
| 100 | await assert.rejects( |
| 101 | () => pipeTo(slowSource(), writer, { signal: ac.signal }), |
no test coverage detected