From 2fce743d822f396d4cf1c70887c73c69768e858e Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 2 Aug 2018 11:00:31 +0200 Subject: [PATCH] Update test-tab.js --- src/app/tabs/test-tab.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js index 4b49e967a8..84b535bb16 100644 --- a/src/app/tabs/test-tab.js +++ b/src/app/tabs/test-tab.js @@ -46,6 +46,10 @@ module.exports = class TestTab { var updateFinalResult = function (_err, result, filename) { testsSummary.hidden = false + if (_err) { + testsSummary.appendChild(yo`
${_err.message}
`) + return + } testsSummary.appendChild(yo`
${filename}
`) if (result.totalPassing > 0) { testsSummary.appendChild(yo`
${result.totalPassing} passing (${result.totalTime}s)
`)