Skip to content

Commit

Permalink
test: remove redundant fchmod test
Browse files Browse the repository at this point in the history
PR-URL: #25282
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
ZYSzys authored and addaleax committed Jan 7, 2019
1 parent f39b3e3 commit ff0f99b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/parallel/test-fs-chmod.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,6 @@ if (fs.lchmod) {
}));
}

['', false, null, undefined, {}, []].forEach((input) => {
const errObj = {
code: 'ERR_INVALID_ARG_TYPE',
name: 'TypeError [ERR_INVALID_ARG_TYPE]',
message: 'The "fd" argument must be of type number. ' +
`Received type ${typeof input}`
};
assert.throws(() => fs.fchmod(input, 0o000), errObj);
assert.throws(() => fs.fchmodSync(input, 0o000), errObj);
});

[false, 1, {}, [], null, undefined].forEach((input) => {
const errObj = {
code: 'ERR_INVALID_ARG_TYPE',
Expand Down

0 comments on commit ff0f99b

Please sign in to comment.