set suite status to failed when afterAll has failures

This commit is contained in:
slackersoft
2014-09-26 09:12:48 -07:00
parent 66c364564e
commit eefa716530
4 changed files with 26 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ jasmineRequire.HtmlReporter = function(j$) {
};
this.suiteDone = function(result) {
if (result.failedExpectations && result.failedExpectations.length > 0) {
if (result.status == 'failed') {
failedSuites.push(result);
}