Skip to content
Permalink
Browse files

test: remove redundant fchmod test

PR-URL: #25282
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information...
ZYSzys authored and addaleax committed Dec 30, 2018
1 parent 807e732 commit f80fbd2c16c7664f41f3c28f4de0846911d6d41f
Showing with 0 additions and 11 deletions.
  1. +0 −11 test/parallel/test-fs-chmod.js
@@ -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',

0 comments on commit f80fbd2

Please sign in to comment.
You can’t perform that action at this time.