Skip to content

Commit

Permalink
test: remove redundant fchmod test
Browse files Browse the repository at this point in the history
PR-URL: nodejs#25282
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
ZYSzys authored and BridgeAR committed Jan 16, 2019
1 parent 939f4ad commit 4d0d84e
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 4d0d84e

Please sign in to comment.