Fix HTML reporter display for excluded specs

This commit is contained in:
Gregg Van Hove
2018-01-29 10:00:15 -08:00
parent 3df9cc26d4
commit 341c6df6ea
3 changed files with 14 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ jasmineRequire.HtmlReporter = function(j$) {
ResultsStateBuilder.prototype.specDone = function(result) {
this.currentParent.addChild(result, 'spec');
if (result.status !== 'disabled') {
if (result.status !== 'excluded') {
this.specsExecuted++;
}
@@ -439,7 +439,7 @@ jasmineRequire.HtmlReporter = function(j$) {
}
function hasActiveSpec(resultNode) {
if (resultNode.type == 'spec' && resultNode.result.status != 'disabled') {
if (resultNode.type == 'spec' && resultNode.result.status != 'excluded') {
return true;
}