Skip to content

Commit 901c48c

Browse files
committed
move unreportedFiles closer to where it's used
1 parent 76860dd commit 901c48c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

api.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ Api.prototype.run = function (files) {
194194

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

197-
// receive test count from all files and then run the tests
198-
var unreportedFiles = self.fileCount;
199-
200197
return new Promise(function (resolve) {
201198
function run() {
202199
if (self.options.match.length > 0 && !self.hasExclusive) {
@@ -238,6 +235,8 @@ Api.prototype.run = function (files) {
238235
}));
239236
}
240237

238+
// receive test count from all files and then run the tests
239+
var unreportedFiles = self.fileCount;
241240
tests.forEach(function (test) {
242241
var tried = false;
243242
function tryRun() {

0 commit comments

Comments
 (0)