Report loading errors as loading errors, not afterAll errors
[#24901981]
This commit is contained in:
@@ -97,6 +97,7 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
if (!suppressLoadErrors) {
|
||||
topSuite.result.failedExpectations.push({
|
||||
passed: false,
|
||||
globalErrorType: 'load',
|
||||
message: message
|
||||
});
|
||||
}
|
||||
|
||||
@@ -119,7 +119,13 @@ getJasmineRequireObj().Suite = function(j$) {
|
||||
actual: '',
|
||||
error: arguments[0]
|
||||
};
|
||||
this.result.failedExpectations.push(this.expectationResultFactory(data));
|
||||
var failedExpectation = this.expectationResultFactory(data);
|
||||
|
||||
if (!this.parentSuite) {
|
||||
failedExpectation.globalErrorType = 'afterAll';
|
||||
}
|
||||
|
||||
this.result.failedExpectations.push(failedExpectation);
|
||||
} else {
|
||||
for (var i = 0; i < this.children.length; i++) {
|
||||
var child = this.children[i];
|
||||
|
||||
Reference in New Issue
Block a user