Allow pending to take a reason and show it in the HtmlReporter

[#78954014] Fix #671
This commit is contained in:
slackersoft
2015-01-26 15:55:31 -08:00
parent a857f4c042
commit 8e3066db42
10 changed files with 116 additions and 16 deletions

View File

@@ -192,6 +192,9 @@ jasmineRequire.HtmlReporter = function(j$) {
if(noExpectations(resultNode.result)) {
specDescription = 'SPEC HAS NO EXPECTATIONS ' + specDescription;
}
if(resultNode.result.status === 'pending' && resultNode.result.pendingReason !== '') {
specDescription = specDescription + ' PENDING WITH MESSAGE: ' + resultNode.result.pendingReason;
}
specListNode.appendChild(
createDom('li', {
className: resultNode.result.status,