Skip to content

Commit

Permalink
Merge pull request #53 from leobalter/glob
Browse files Browse the repository at this point in the history
Run tests over subfolders
  • Loading branch information
bterlson committed Jul 27, 2016
2 parents 57ba576 + fec20dd commit 120699b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/globber.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ function globber(paths) {
const files = new Rx.Subject();
files.fileEvents = [];

const Glob = glob.Glob;
let doneCount = 0;

paths.forEach(function (path) {
const fileEvents = new Glob(path);
const fileEvents = new glob.Glob(path, {
nodir: true
});

fileEvents.on('match', function (file) {
files.onNext(file);
Expand All @@ -23,7 +24,7 @@ function globber(paths) {
});

files.fileEvents.push(fileEvents);
})
});

return files;
}
Expand Down

0 comments on commit 120699b

Please sign in to comment.