☕️ Classic, reliable, trusted test framework for Node.js and the browser
Fixed omission of .js extension. Closes #454
TJ Holowaychuk36e6f3f572e0
diff --git a/bin/_mocha b/bin/_mochaindex 6f61df28..4ed26bbb 100755--- a/bin/_mocha+++ b/bin/_mocha@@ -8,6 +8,7 @@ var program = require('commander'), exec = require('child_process').exec, path = require('path'), resolve = path.resolve+ , exists = path.existsSync, mocha = require('../'), utils = mocha.utils, reporters = mocha.reporters@@ -358,6 +359,7 @@ function stop() {function lookupFiles(path, recursive) {var files = [];+ if (!exists(path)) path += '.js';var stat = fs.statSync(path);if (stat.isFile()) return path;