We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cc6912 commit 812b05eCopy full SHA for 812b05e
src/index.js
@@ -98,7 +98,7 @@ const formatResults = ({ results, thresholds }) => {
98
}));
99
100
const shortSummary = categories
101
- .map(({ title, score }) => `${title}: ${score * 100}`)
+ .map(({ title, score }) => `${title}: ${Math.round(score * 100)}`)
102
.join(', ');
103
104
const formattedReport = makeReplacements(results.report);
@@ -226,7 +226,7 @@ const processResults = ({ data, errors }) => {
226
227
if (summary) {
228
obj.summary = summary.reduce((acc, item) => {
229
- acc[item.id] = item.score * 100;
+ acc[item.id] = Math.round(item.score * 100);
230
return acc;
231
}, {});
232
}
0 commit comments