Skip to content

Commit 4d65e94

Browse files
test: update test
Co-authored-by: Livia Medeiros <livia@cirno.name>
1 parent 9bdcb06 commit 4d65e94

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/parallel/test-fs-promises-statfs-validate-path.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ const assert = require('assert');
77
(async () => {
88
await assert.rejects(
99
fs.promises.statfs(),
10-
(err) => {
11-
assert.strictEqual(err.code, 'ERR_INVALID_ARG_TYPE');
12-
return true;
13-
}
10+
{ code: 'ERR_INVALID_ARG_TYPE' },
1411
);
1512
})().then(common.mustCall());

0 commit comments

Comments
 (0)