()
| 75 | } |
| 76 | |
| 77 | async function testConsumerBreak() { |
| 78 | const { writer, readable } = push({ highWaterMark: 10 }); |
| 79 | |
| 80 | writer.writeSync('a'); |
| 81 | writer.writeSync('b'); |
| 82 | writer.writeSync('c'); |
| 83 | |
| 84 | // Break after first batch |
| 85 | // eslint-disable-next-line no-unused-vars |
| 86 | for await (const _ of readable) { |
| 87 | break; |
| 88 | } |
| 89 | |
| 90 | // Writer should now see null desiredSize |
| 91 | assert.strictEqual(writer.desiredSize, null); |
| 92 | } |
| 93 | |
| 94 | async function testAbortSignal() { |
| 95 | const ac = new AbortController(); |
no test coverage detected
searching dependent graphs…