Skip to content

Commit

Permalink
implement #282
Browse files Browse the repository at this point in the history
  • Loading branch information
vdemedes committed Nov 29, 2015
1 parent 6dd7616 commit d0aafff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ Api.prototype.run = function () {
if (++statsCount === self.fileCount) {
self.emit('ready');

tests.forEach(function (test) {
test.run();
});
var method = self.serial ? 'mapSeries' : 'map';

deferred.resolve(Promise.all(tests));
deferred.resolve(Promise[method](files, function (file, index) {
return tests[index].run();
}));
}
}

Expand Down

0 comments on commit d0aafff

Please sign in to comment.