From 26165ac1b66531e5a454bce32e270dd5e2483e4e Mon Sep 17 00:00:00 2001 From: ZYSzys <17367077526@163.com> Date: Sun, 30 Dec 2018 14:30:15 +0800 Subject: [PATCH] test: remove redundant fchmod test PR-URL: https://github.com/nodejs/node/pull/25282 Reviewed-By: Luigi Pinca --- test/parallel/test-fs-chmod.js | 11 ----------- 1 file changed, 11 deletions(-) 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',