Skip to content

Commit

Permalink
config-meta test: skip over missing files
Browse files Browse the repository at this point in the history
Happens in dev, but the ignore file prevents it from happening in
an actual release.
  • Loading branch information
isaacs committed May 21, 2014
1 parent 413c579 commit e16cdb5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/tap/config-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ test("get files", function (t) {
return path.resolve(lib, f)
})
files.forEach(function (f) {
if (fs.statSync(f).isDirectory())
try {
var s = fs.statSync(f)
} catch (er) {
return
}
if (s.isDirectory())
walk(f)
else if (f.match(/\.js$/))
FILES.push(f)
Expand Down

0 comments on commit e16cdb5

Please sign in to comment.