Browse Source

move unreportedFiles closer to where it's used

browser-support
Mark Wubben 9 years ago
parent
commit
901c48cc83
  1. 5
      api.js

5
api.js

@ -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) {
@ -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() {

Loading…
Cancel
Save