(stream)
| 161 | ); |
| 162 | |
| 163 | async function write(stream) { |
| 164 | const writer = stream.getWriter(); |
| 165 | const p = writer.write('hello'); |
| 166 | assert.strictEqual(writer.desiredSize, 0); |
| 167 | await p; |
| 168 | assert.strictEqual(writer.desiredSize, 1); |
| 169 | } |
| 170 | |
| 171 | write(stream).then(common.mustCall(() => { |
| 172 | assert.deepStrictEqual(['hello'], sink.chunks); |
no test coverage detected
searching dependent graphs…