Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed totals display

  • Loading branch information...
commit b44db16797a4c42a62d9898cd795062e3389610d 1 parent 10591ad
@tmpvar authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/runner.js
View
6 lib/runner.js
@@ -122,7 +122,7 @@ exports.run = function(testSuites) {
if (testSuites.hasOwnProperty(suiteName)) {
numerator = testSuites[suiteName].total - testSuites[suiteName].errors.length;
denominator = testSuites[suiteName].total;
- percent = Math.round((numerator / denominator)*100,2) || 100;
+ percent = Math.round((numerator / denominator)*100,2) || 0;
sys.puts(padName(suiteName) + "\t" + numerator + "/" + denominator + "\t\t" + percent + "% passing");
}
}
@@ -130,7 +130,7 @@ exports.run = function(testSuites) {
sys.puts("--------------------------------------------");
numerator = total-errors.length;
denominator = total;
- percent = Math.round((numerator / denominator)*100,2) || 100;
- sys.puts("TOTALS:\t\t" + numerator + "/" + denominator + "\t\t" + percent + "% passing\r\n");
+ percent = Math.round((numerator / denominator)*100,2) || 0;
+ sys.puts("TOTALS:\t\t" + numerator + "/" + denominator + "\t" + percent + "% passing\r\n");
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.