()
| 35 | } |
| 36 | |
| 37 | async function testPipeToPreventClose() { |
| 38 | let endCalled = false; |
| 39 | const writer = { |
| 40 | async write() {}, |
| 41 | async end() { endCalled = true; }, |
| 42 | async fail() {}, |
| 43 | }; |
| 44 | |
| 45 | await pipeTo(from('data'), writer, { preventClose: true }); |
| 46 | assert.strictEqual(endCalled, false); |
| 47 | } |
| 48 | |
| 49 | // PipeTo source error calls writer.fail() |
| 50 | async function testPipeToSourceError() { |
no test coverage detected
searching dependent graphs…