Skip to content

Commit

Permalink
Fix --recursive, broken by f0facd2
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Appelman <jappelman@xebia.com>
Added newly generated mocha.js

Closes #1350
  • Loading branch information
domq authored and Joshua Appelman committed Sep 9, 2014
1 parent a4cf699 commit 4f13ff5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils.js
Expand Up @@ -371,7 +371,7 @@ exports.lookupFiles = function lookupFiles(path, extensions, recursive) {
var stat = fs.statSync(file);
if (stat.isDirectory()) {
if (recursive) {
files = files.concat(lookupFiles(file, recursive));
files = files.concat(lookupFiles(file, extensions, recursive));
}
return;
}
Expand Down
2 changes: 1 addition & 1 deletion mocha.js
Expand Up @@ -5890,7 +5890,7 @@ exports.lookupFiles = function lookupFiles(path, extensions, recursive) {
var stat = fs.statSync(file);
if (stat.isDirectory()) {
if (recursive) {
files = files.concat(lookupFiles(file, recursive));
files = files.concat(lookupFiles(file, extensions, recursive));
}
return;
}
Expand Down

0 comments on commit 4f13ff5

Please sign in to comment.