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 <[email protected]>
  • Loading branch information
ZYSzys authored and MylesBorins committed May 16, 2019
1 parent 883d61c commit 26165ac
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 26165ac

Please sign in to comment.