diff --git a/tests/bugs/issue267.js b/tests/bugs/issue267.js index e13f256..5075b78 100644 --- a/tests/bugs/issue267.js +++ b/tests/bugs/issue267.js @@ -14,6 +14,7 @@ describe('fs.readdir on non-dir paths, issue 267', function() { fs.readdir('/myfile.txt', function(err, contents) { expect(err).to.exist; expect(err.code).to.equal('ENOTDIR'); + expect(contents).not.to.exist; done(); }); });