Skip to content

Commit 9bdcb06

Browse files
committed
fs: add test for statfs validate path
1 parent d93ab47 commit 9bdcb06

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict';
2+
3+
const common = require('../common');
4+
const fs = require('fs');
5+
const assert = require('assert');
6+
7+
(async () => {
8+
await assert.rejects(
9+
fs.promises.statfs(),
10+
(err) => {
11+
assert.strictEqual(err.code, 'ERR_INVALID_ARG_TYPE');
12+
return true;
13+
}
14+
);
15+
})().then(common.mustCall());

0 commit comments

Comments
 (0)