testilo 3.11.0 → 3.11.2
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 +1 -1
- package/procs/score/sp16a.js +15 -0
package/package.json
CHANGED
package/procs/score/sp16a.js
CHANGED
|
@@ -6054,6 +6054,14 @@ exports.scorer = async report => {
|
|
|
6054
6054
|
// Add 2 per defect.
|
|
6055
6055
|
addDetail('testaro', which, 2 * issueCount);
|
|
6056
6056
|
}
|
|
6057
|
+
else if (which === 'miniText') {
|
|
6058
|
+
const items = test.result && test.result.items;
|
|
6059
|
+
if (items.length) {
|
|
6060
|
+
// Add 1 per 100 characters of small-text.
|
|
6061
|
+
const totalLength = items.reduce((total, item) => total + item.length, 0);
|
|
6062
|
+
addDetail('testaro', which, Math.floor(totalLength / 100));
|
|
6063
|
+
}
|
|
6064
|
+
}
|
|
6057
6065
|
else if (which === 'motion') {
|
|
6058
6066
|
const data = test.result;
|
|
6059
6067
|
if (data) {
|
|
@@ -6075,6 +6083,13 @@ exports.scorer = async report => {
|
|
|
6075
6083
|
addDetail('testaro', which, score);
|
|
6076
6084
|
}
|
|
6077
6085
|
}
|
|
6086
|
+
else if (which === 'nonTable') {
|
|
6087
|
+
const total = test.result && test.result.total;
|
|
6088
|
+
if (total) {
|
|
6089
|
+
// Add 2 per pseudotable.
|
|
6090
|
+
addDetail('testaro', which, 2 * total);
|
|
6091
|
+
}
|
|
6092
|
+
}
|
|
6078
6093
|
else if (which === 'radioSet') {
|
|
6079
6094
|
const totals = test.result && test.result.totals;
|
|
6080
6095
|
if (totals) {
|