()
| 49 | // ============================================================================= |
| 50 | |
| 51 | async function testByteModeThroughPull() { |
| 52 | const readable = new Readable({ |
| 53 | read() { |
| 54 | this.push(Buffer.from('pull ')); |
| 55 | this.push(Buffer.from('test')); |
| 56 | this.push(null); |
| 57 | }, |
| 58 | }); |
| 59 | |
| 60 | const result = await text(pull(readable)); |
| 61 | assert.strictEqual(result, 'pull test'); |
| 62 | } |
| 63 | |
| 64 | // ============================================================================= |
| 65 | // Byte-mode Readable: bytes consumer |
no test coverage detected