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:
parent
f39b3e3371
commit
ff0f99b725
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user