Skip to content

Commit

Permalink
fix(jasmine2): be consistent about passing assertions in output JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
juliemr committed Apr 16, 2015
1 parent dafa348 commit 1c44c90
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 1c44c90

Please sign in to comment.