testilo 3.11.0 → 3.11.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "3.11.0",
3
+ "version": "3.11.1",
4
4
  "description": "Client that scores and digests Testaro reports",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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) {