()
| 568 | // ============================================================================= |
| 569 | |
| 570 | async function testRoundTrip() { |
| 571 | const original = 'round trip data test'; |
| 572 | |
| 573 | // stream/iter -> classic Readable |
| 574 | const source = from(original); |
| 575 | const readable = toReadable(source); |
| 576 | |
| 577 | // classic Readable -> stream/iter (via toAsyncStreamable) |
| 578 | const result = await text(from(readable)); |
| 579 | assert.strictEqual(result, original); |
| 580 | } |
| 581 | |
| 582 | // ============================================================================= |
| 583 | // Round-trip with compression |
no test coverage detected