Skip to content

Commit f80fbd2

Browse files
ZYSzysaddaleax
authored andcommitted
test: remove redundant fchmod test
PR-URL: #25282 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 807e732 commit f80fbd2

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/parallel/test-fs-chmod.js

-11
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,6 @@ if (fs.lchmod) {
147147
}));
148148
}
149149

150-
['', false, null, undefined, {}, []].forEach((input) => {
151-
const errObj = {
152-
code: 'ERR_INVALID_ARG_TYPE',
153-
name: 'TypeError [ERR_INVALID_ARG_TYPE]',
154-
message: 'The "fd" argument must be of type number. ' +
155-
`Received type ${typeof input}`
156-
};
157-
assert.throws(() => fs.fchmod(input, 0o000), errObj);
158-
assert.throws(() => fs.fchmodSync(input, 0o000), errObj);
159-
});
160-
161150
[false, 1, {}, [], null, undefined].forEach((input) => {
162151
const errObj = {
163152
code: 'ERR_INVALID_ARG_TYPE',

0 commit comments

Comments
 (0)