Skip to content

Commit

Permalink
test: improve FileHandle.prototype.write coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Mar 31, 2022
1 parent 1600869 commit e588592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-promises-file-handle-write.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function validateNonUint8ArrayWrite() {
async function validateNonStringValuesWrite() {
const filePathForHandle = path.resolve(tmpDir, 'tmp-non-string-write.txt');
const fileHandle = await open(filePathForHandle, 'w+');
const nonStringValues = [123, {}, new Map()];
const nonStringValues = [123, {}, new Map(), null, undefined, 0n, () => {}, Symbol(), true];
for (const nonStringValue of nonStringValues) {
await assert.rejects(
fileHandle.write(nonStringValue),
Expand Down

0 comments on commit e588592

Please sign in to comment.