(resultNode)
| 718 | } |
| 719 | |
| 720 | function hasActiveSpec(resultNode) { |
| 721 | if (resultNode.type == "spec" && resultNode.result.status != "excluded") { |
| 722 | return true |
| 723 | } |
| 724 | |
| 725 | if (resultNode.type == "suite") { |
| 726 | for (let i = 0, j = resultNode.children.length; i < j; i++) { |
| 727 | if (hasActiveSpec(resultNode.children[i])) { |
| 728 | return true |
| 729 | } |
| 730 | } |
| 731 | } |
| 732 | } |
| 733 | } |
| 734 | |
| 735 | return HtmlReporter |