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

Commit 815ff5d

Browse files
juliemrsjelin
authored andcommitted
fix(jasmine2): be consistent about passing assertions in output JSON
See #2051
1 parent 30df32c commit 815ff5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/frameworks/jasmine2.js

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ RunnerReporter.prototype.specDone = function(result) {
3434
duration: new Date().getTime() - this.startTime.getTime()
3535
};
3636

37+
if (result.failedExpectations.length == 0) {
38+
entry.assertions.push({
39+
passed: true
40+
});
41+
}
42+
3743
result.failedExpectations.forEach(function(item) {
3844
entry.assertions.push({
3945
passed: item.passed,

0 commit comments

Comments
 (0)