Update test-tab.js

pull/3094/head
yann300 6 years ago committed by GitHub
parent 5d24f1ecc9
commit 2fce743d82
  1. 4
      src/app/tabs/test-tab.js

@ -46,6 +46,10 @@ module.exports = class TestTab {
var updateFinalResult = function (_err, result, filename) { var updateFinalResult = function (_err, result, filename) {
testsSummary.hidden = false testsSummary.hidden = false
if (_err) {
testsSummary.appendChild(yo`<div class=${css.testFailureSummary} >${_err.message}</div>`)
return
}
testsSummary.appendChild(yo`<div class=${css.summaryTitle}> ${filename} </div>`) testsSummary.appendChild(yo`<div class=${css.summaryTitle}> ${filename} </div>`)
if (result.totalPassing > 0) { if (result.totalPassing > 0) {
testsSummary.appendChild(yo`<div>${result.totalPassing} passing (${result.totalTime}s)</div>`) testsSummary.appendChild(yo`<div>${result.totalPassing} passing (${result.totalTime}s)</div>`)

Loading…
Cancel
Save