Skip to content

Commit

Permalink
move unreportedFiles closer to where it's used
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Mar 9, 2016
1 parent 76860dd commit 901c48c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ Api.prototype.run = function (files) {

var tests = files.map(self._runFile);

// receive test count from all files and then run the tests
var unreportedFiles = self.fileCount;

return new Promise(function (resolve) {
function run() {
if (self.options.match.length > 0 && !self.hasExclusive) {
Expand Down Expand Up @@ -238,6 +235,8 @@ Api.prototype.run = function (files) {
}));
}

// receive test count from all files and then run the tests
var unreportedFiles = self.fileCount;
tests.forEach(function (test) {
var tried = false;
function tryRun() {
Expand Down

0 comments on commit 901c48c

Please sign in to comment.