Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f80fbd2

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

File tree

Expand file treeCollapse file tree

1 file changed

+0
-11
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-11
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-fs-chmod.js
-11Lines 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-
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.