()
| 264 | // ============================================================================= |
| 265 | |
| 266 | async function testClosedHandle() { |
| 267 | const filePath = path.join(tmpDir, 'writer-closed-handle.txt'); |
| 268 | const fh = await open(filePath, 'w'); |
| 269 | await fh.close(); |
| 270 | |
| 271 | assert.throws(() => fh.writer(), { |
| 272 | name: 'Error', |
| 273 | message: /closed/, |
| 274 | }); |
| 275 | } |
| 276 | |
| 277 | // ============================================================================= |
| 278 | // pipeTo() integration - pipe source through writer |
no test coverage detected