()
| 157 | // ============================================================================= |
| 158 | |
| 159 | async function testEmptyStream() { |
| 160 | const readable = new Readable({ |
| 161 | read() { |
| 162 | this.push(null); |
| 163 | }, |
| 164 | }); |
| 165 | |
| 166 | const result = await text(from(readable)); |
| 167 | assert.strictEqual(result, ''); |
| 168 | } |
| 169 | |
| 170 | // ============================================================================= |
| 171 | // Byte-mode Readable: error propagation |
no test coverage detected