testilo 19.1.2 → 19.1.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
|
@@ -20,7 +20,7 @@ const innerJoiner = '\n ';
|
|
|
20
20
|
const getScoreRow = (componentName, score) => `<tr><th>${componentName}</th><td>${score}</td></tr>`;
|
|
21
21
|
// Gets a row of the issue-score-summary table.
|
|
22
22
|
const getIssueScoreRow = (summary, wcag, score, tools) => {
|
|
23
|
-
const toolList = tools.join(', ');
|
|
23
|
+
const toolList = tools.map(tool => `<code>${tool}</code>`).join(', ');
|
|
24
24
|
return `<tr><th>${summary}</th><td>${wcag}<td>${score}</td><td>${toolList}</tr>`;
|
|
25
25
|
};
|
|
26
26
|
// Adds parameters to a query for a digest.
|
package/procs/score/tsp37.js
CHANGED
|
@@ -95,7 +95,7 @@ exports.scorer = report => {
|
|
|
95
95
|
// Add this to the score.
|
|
96
96
|
details.prevention[which] = preventionWeight;
|
|
97
97
|
}
|
|
98
|
-
// Otherwise, if a
|
|
98
|
+
// Otherwise, if a valid standard result exists:
|
|
99
99
|
else if (
|
|
100
100
|
standardResult
|
|
101
101
|
&& standardResult.totals
|
|
@@ -125,6 +125,7 @@ exports.scorer = report => {
|
|
|
125
125
|
// Add the instance to the issue details of the score data.
|
|
126
126
|
if (! details.issue[issueName]) {
|
|
127
127
|
details.issue[issueName] = {
|
|
128
|
+
summary: issues[issueName].summary,
|
|
128
129
|
score: 0,
|
|
129
130
|
maxCount: 0,
|
|
130
131
|
weight: issues[issueName].weight,
|