We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5cbbe0 commit aaeafd5Copy full SHA for aaeafd5
test/parallel/test-fs-opendir.js
@@ -91,6 +91,10 @@ assert.throws(function() {
91
fs.opendirSync(__filename);
92
}, /Error: ENOTDIR: not a directory/);
93
94
+assert.throws(function() {
95
+ fs.opendir(__filename);
96
+}, /TypeError \[ERR_INVALID_CALLBACK\]: Callback must be a function/);
97
+
98
fs.opendir(__filename, common.mustCall(function(e) {
99
assert.strictEqual(e.code, 'ENOTDIR');
100
}));
0 commit comments