()
| 397 | // ============================================================================= |
| 398 | |
| 399 | async function testDrainableNoPressure() { |
| 400 | const writable = new Writable({ |
| 401 | highWaterMark: 1024, |
| 402 | write(chunk, enc, cb) { cb(); }, |
| 403 | }); |
| 404 | |
| 405 | const writer = fromWritable(writable); |
| 406 | const result = await ondrain(writer); |
| 407 | assert.strictEqual(result, true); |
| 408 | } |
| 409 | |
| 410 | // ============================================================================= |
| 411 | // drainableProtocol: returns null when destroyed |
no test coverage detected