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