()
| 142 | // flush) doesn't leak an unhandled 'error' onto the stream, and |
| 143 | // resolve either way so the finally block proceeds to unlinkSync. |
| 144 | const done = (): void => { |
| 145 | file.off("error", done); |
| 146 | resolve(); |
| 147 | }; |
| 148 | file.once("error", done); |
| 149 | file.end(() => done()); |
| 150 | }); |
no test coverage detected