Skip to content

Commit 7bf8117

Browse files
aduh95juanarbol
authored andcommitted
test: improve FileHandle.prototype.write coverage
Refs: #42518 PR-URL: #42541 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
1 parent 846acac commit 7bf8117

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)