testilo 16.0.2 → 16.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -23,7 +23,8 @@ const htmlEscape = textOrNumber => textOrNumber
|
|
|
23
23
|
.replace(/&/g, '&')
|
|
24
24
|
.replace(/</g, '<');
|
|
25
25
|
// Gets a row of the score-summary table.
|
|
26
|
-
const getScoreRow
|
|
26
|
+
const getScoreRow
|
|
27
|
+
= (componentName, score) => `<tr><th>${componentName}</th><td class="right">${score}</td></tr>`;
|
|
27
28
|
// Adds parameters to a query for a digest.
|
|
28
29
|
const populateQuery = (report, query) => {
|
|
29
30
|
const {sources, jobData, score} = report;
|
|
@@ -51,7 +52,7 @@ const populateQuery = (report, query) => {
|
|
|
51
52
|
history.forEach(event => {
|
|
52
53
|
rows.historyRows.push(getScoreRow(... event));
|
|
53
54
|
});
|
|
54
|
-
query.scoreHistory = historyRows.join(innerJoiner);
|
|
55
|
+
query.scoreHistory = rows.historyRows.join(innerJoiner);
|
|
55
56
|
// Sort the issue IDs in descending score order.
|
|
56
57
|
const issueIDs = Object.keys(details.issue);
|
|
57
58
|
issueIDs.sort((a, b) => details.issue[b].score - details.issue[a].score);
|