()
| 87 | } |
| 88 | |
| 89 | async function doWriteInvalidIterable() { |
| 90 | await Promise.all( |
| 91 | [42, 42n, {}, Symbol('42'), true, undefined, null, NaN].map((value) => |
| 92 | assert.rejects(fsPromises.writeFile(dest, iterableWith(value)), { |
| 93 | code: 'ERR_INVALID_ARG_TYPE', |
| 94 | }) |
| 95 | ) |
| 96 | ); |
| 97 | } |
| 98 | |
| 99 | async function doWriteIterableWithEncoding() { |
| 100 | await fsPromises.writeFile(dest, stream2, 'latin1'); |
no test coverage detected