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