| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0285aa0 commit 850c2a7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -91,6 +91,10 @@ assert.throws(function() { | |||
| 91 | 91 | fs.opendirSync(__filename); | |
| 92 | 92 | }, /Error: ENOTDIR: not a directory/); | |
| 93 | 93 | ||
| 94 | + assert.throws(function() { | ||
| 95 | + fs.opendir(__filename); | ||
| 96 | + }, /TypeError \[ERR_INVALID_CALLBACK\]: Callback must be a function/); | ||
| 97 | + | ||
| 94 | 98 | fs.opendir(__filename, common.mustCall(function(e) { | |
| 95 | 99 | assert.strictEqual(e.code, 'ENOTDIR'); | |
| 96 | 100 | })); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments