Skip to content

Commit

Permalink
test: not validate the message, but rather the error code
Browse files Browse the repository at this point in the history
  • Loading branch information
wafuwafu13 committed Sep 24, 2022
1 parent 73aaca6 commit b7ba2c3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/parallel/test-fs-read.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@ assert.throws(

assert.throws(
() => fs.read(fd, { buffer: null }, common.mustNotCall()),
{
name: 'TypeError',
message: 'The "buffer" argument must be an instance of Buffer, ' +
'TypedArray, or DataView. Received null',
},
{ code: 'ERR_INVALID_ARG_TYPE' },
'throws when options.buffer is null'
);

Expand Down

0 comments on commit b7ba2c3

Please sign in to comment.