diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2022-04-03 00:57:24 +0200 |
---|---|---|
committer | Juan José Arboleda <soyjuanarbol@gmail.com> | 2022-04-06 12:25:51 -0500 |
commit | 90554572b51d1d31da502ce89a5d6fc9a01bb221 (patch) | |
tree | 08f95f0c6ed84def189e8b4600045530f1daed21 | |
parent | 797994e4c015daba6154f650a20d888dd3cbcf42 (diff) | |
download | node-new-90554572b51d1d31da502ce89a5d6fc9a01bb221.tar.gz |
test: improve `FileHandle.prototype.write` coverage
Refs: https://github.com/nodejs/node/pull/42518
PR-URL: https://github.com/nodejs/node/pull/42541
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
-rw-r--r-- | test/parallel/test-fs-promises-file-handle-write.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-fs-promises-file-handle-write.js b/test/parallel/test-fs-promises-file-handle-write.js index 3c25842d8b..8d02052276 100644 --- a/test/parallel/test-fs-promises-file-handle-write.js +++ b/test/parallel/test-fs-promises-file-handle-write.js @@ -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), |