()
| 179 | |
| 180 | // PipeTo with writeSync/writevSync fallback |
| 181 | async function testPipeToSyncFallback() { |
| 182 | const chunks = []; |
| 183 | const writer = { |
| 184 | writeSync(chunk) { chunks.push(chunk); return true; }, |
| 185 | write(chunk) { chunks.push(chunk); }, |
| 186 | }; |
| 187 | await pipeTo(from('hello'), writer); |
| 188 | assert.strictEqual(chunks.length > 0, true); |
| 189 | } |
| 190 | |
| 191 | // PipeTo preventFail option |
| 192 | async function testPipeToPreventFail() { |
no test coverage detected
searching dependent graphs…