diff --git a/test/parallel/test-fs-chmod.js b/test/parallel/test-fs-chmod.js index c3b3dc2fc9c151..81a117f7713fa8 100644 --- a/test/parallel/test-fs-chmod.js +++ b/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',