()
| 6 | const { push, text } = require('stream/iter'); |
| 7 | |
| 8 | async function testBasicWriteRead() { |
| 9 | const { writer, readable } = push(); |
| 10 | |
| 11 | writer.write('hello'); |
| 12 | writer.end(); |
| 13 | |
| 14 | const data = await text(readable); |
| 15 | assert.strictEqual(data, 'hello'); |
| 16 | } |
| 17 | |
| 18 | async function testMultipleWrites() { |
| 19 | const { writer, readable } = push({ highWaterMark: 10 }); |
no test coverage detected
searching dependent graphs…