integrated trivial console into a real-world situation and dicovered a couple mistakes/misses

This commit is contained in:
Steve Conover
2011-02-28 23:17:39 -08:00
parent f5afe18a6b
commit 88ee377662
2 changed files with 11 additions and 9 deletions

View File

@@ -85,6 +85,8 @@ jasmine.TrivialConsoleReporter = function(print) {
started();
};
this.reportSpecStarting = function() { /* do nothing */ };
this.reportSpecResults = function(spec) {
var results = spec.results();
if (results.skipped) {
@@ -135,6 +137,6 @@ jasmine.TrivialConsoleReporter = function(print) {
var results = runner.results();
var summaryFunction = results.failedCount === 0 ? greenSummary : redSummary;
summaryFunction(results.specs().length, results.totalCount, results.failedCount);
summaryFunction(results.items_.length, results.totalCount, results.failedCount);
};
};