From 35c142df1902d5e3510f655b5f761085e1b2790b Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Wed, 13 May 2020 22:29:43 +0200 Subject: [PATCH] Another fix --- src/analysis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analysis.js b/src/analysis.js index 82cffa8c..e7d53b10 100644 --- a/src/analysis.js +++ b/src/analysis.js @@ -26,7 +26,7 @@ function aggregate(err) { evaluation.tests = results[0].concat(results[1]); evaluation.coverage = results[2]; - evaluation.time = evaluation.tests.reduce((a, b) => { + evaluation.time = evaluation.tests.length == 0 ? 0 : evaluation.tests.reduce((a, b) => { var x = a.time ? parseFloat(a.time): a; var y = b.time ? parseFloat(b.time): b; return x + y;