Skip to content

Commit

Permalink
Another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBusyBiscuit committed May 13, 2020
1 parent 954be5e commit 35c142d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 35c142d

Please sign in to comment.