test: remove redundant fchmod test

PR-URL: https://github.com/nodejs/node/pull/25282
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
ZYSzys 2018-12-30 14:30:15 +08:00 committed by Anna Henningsen
parent f39b3e3371
commit ff0f99b725
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9

View File

@ -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',