Don't display late errors as AfterAll errors in the HTML reporter

This commit is contained in:
Steve Gravrock
2021-09-11 08:57:50 -07:00
parent d092a59bd1
commit 6e10f22403
7 changed files with 82 additions and 20 deletions

View File

@@ -272,8 +272,10 @@ jasmineRequire.HtmlReporter = function(j$) {
} else {
return prefix;
}
} else {
} else if (failure.globalErrorType === 'afterAll') {
return afterAllMessagePrefix + failure.message;
} else {
return failure.message;
}
}