()
| 51 | |
| 52 | // pipeToSync with preventClose: true — end/endSync not called |
| 53 | async function testPipeToSyncPreventClose() { |
| 54 | let endCalled = false; |
| 55 | const writer = { |
| 56 | writeSync() { return true; }, |
| 57 | endSync() { endCalled = true; return 0; }, |
| 58 | }; |
| 59 | pipeToSync(fromSync('data'), writer, { preventClose: true }); |
| 60 | assert.strictEqual(endCalled, false); |
| 61 | } |
| 62 | |
| 63 | Promise.all([ |
| 64 | testPipeToSyncEndSyncFallback(), |
no test coverage detected