Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
why is this not failing
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn226 committed Dec 21, 2023
1 parent e9a2c4f commit b345075
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/aggregate-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ function AggregateResults(runnerResults) {
console.log(totals)

// const totalPercent = totals.reduce(totalPercentageReducer, 0).toFixed(2) + "%";


const totalTestScore = totals.reduce(acc, curr => acc + curr.score, 0)

table.push(["Total: ", `${totalTestScore}`, getTotalMaxScore]);
table.push(["Total: ", totals, getTotalMaxScore]);

console.log(table.toString());
} catch (error) {
Expand Down

0 comments on commit b345075

Please sign in to comment.