Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(jasmine2): be consistent about passing assertions in output JSON
Browse files Browse the repository at this point in the history
See #2051
  • Loading branch information
juliemr authored and sjelin committed May 12, 2015
1 parent 30df32c commit 815ff5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/frameworks/jasmine2.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ RunnerReporter.prototype.specDone = function(result) {
duration: new Date().getTime() - this.startTime.getTime()
};

if (result.failedExpectations.length == 0) {
entry.assertions.push({
passed: true
});
}

result.failedExpectations.forEach(function(item) {
entry.assertions.push({
passed: item.passed,
Expand Down

0 comments on commit 815ff5d

Please sign in to comment.