diff --git a/test/parallel/test-fs-read.js b/test/parallel/test-fs-read.js index 5843cdc8365024..d3de036b67e6e4 100644 --- a/test/parallel/test-fs-read.js +++ b/test/parallel/test-fs-read.js @@ -75,3 +75,11 @@ assert.throws( code: 'ERR_INVALID_CALLBACK', } ); + +assert.throws( + () => fs.read(null, Buffer.alloc(1), 0, 1, 0), + { + message: 'The "fd" argument must be of type number. Received type object', + code: 'ERR_INVALID_ARG_TYPE', + } +);