Skip to content

Commit 26165ac

Browse files
ZYSzysMylesBorins
authored andcommitted
test: remove redundant fchmod test
PR-URL: #25282 Reviewed-By: Luigi Pinca <[email protected]>
1 parent 883d61c commit 26165ac

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

‎test/parallel/test-fs-chmod.js‎

Lines changed: 0 additions & 11 deletions
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-
consterrObj={
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 ${typeofinput}`
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
consterrObj={
163152
code: 'ERR_INVALID_ARG_TYPE',

0 commit comments

Comments
(0)