Skip to content

Commit 3734b64

Browse files
aduh95juanarbol
authored andcommitted
test: improve FileHandle.prototype.write coverage
Refs: #42518 PR-URL: #42541 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Mestery <[email protected]>
1 parent f25ba8c commit 3734b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-fs-promises-file-handle-write.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function validateNonUint8ArrayWrite() {
5353
async function validateNonStringValuesWrite() {
5454
const filePathForHandle = path.resolve(tmpDir, 'tmp-non-string-write.txt');
5555
const fileHandle = await open(filePathForHandle, 'w+');
56-
const nonStringValues = [123, {}, new Map()];
56+
const nonStringValues = [123, {}, new Map(), null, undefined, 0n, () => {}, Symbol(), true];
5757
for (const nonStringValue of nonStringValues) {
5858
await assert.rejects(
5959
fileHandle.write(nonStringValue),

0 commit comments

Comments
 (0)