Merge branch '3.99' into 4.0

This commit is contained in:
Steve Gravrock
2021-07-24 09:25:19 -07:00
4 changed files with 135 additions and 32 deletions

View File

@@ -119,10 +119,11 @@ getJasmineRequireObj().Spec = function(j$) {
self.onException.apply(self, arguments);
},
onComplete: function() {
onComplete(
self.result.status === 'failed' &&
new j$.StopExecutionError('spec failed')
);
if (self.result.status === 'failed') {
onComplete(new j$.StopExecutionError('spec failed'));
} else {
onComplete();
}
},
userContext: this.userContext()
};