| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -147,17 +147,6 @@ if (fs.lchmod) { | |||
| 147 | 147 | })); | |
| 148 | 148 | } | |
| 149 | 149 | ||
| 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 | - | ||
| 161 | 150 | [false, 1, {}, [], null, undefined].forEach((input) => { | |
| 162 | 151 | const errObj = { | |
| 163 | 152 | code: 'ERR_INVALID_ARG_TYPE', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments