actually count right, total tests == total expects

This commit is contained in:
John Bintz 2011-06-08 13:46:08 -04:00
parent 860da38c99
commit 57faed9d8f
2 changed files with 3 additions and 4 deletions

View File

@ -28,6 +28,7 @@ class jasmine.HeadlessReporter
@startTime = new Date()
reportSpecResults: (spec) ->
results = spec.results()
@length += results.getItems().length
if results.passed()
JHW.specPassed()
else
@ -41,4 +42,3 @@ class jasmine.HeadlessReporter
@results.push(failureResult)
reportSpecStarting: (spec) ->
reportSuiteResults: (suite) ->
@length += suite.specs().length

View File

@ -51,6 +51,7 @@
HeadlessReporter.prototype.reportSpecResults = function(spec) {
var failureResult, result, results, _fn, _i, _len, _ref;
results = spec.results();
this.length += results.getItems().length;
if (results.passed()) {
return JHW.specPassed();
} else {
@ -71,9 +72,7 @@
}
};
HeadlessReporter.prototype.reportSpecStarting = function(spec) {};
HeadlessReporter.prototype.reportSuiteResults = function(suite) {
return this.length += suite.specs().length;
};
HeadlessReporter.prototype.reportSuiteResults = function(suite) {};
return HeadlessReporter;
})();
}).call(this);