testilo 33.0.1 → 33.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rescore.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "33.0.1",
3
+ "version": "33.0.2",
4
4
  "description": "Prepares and processes Testaro reports",
5
5
  "main": "call.js",
6
6
  "scripts": {
package/rescore.js CHANGED
@@ -30,8 +30,9 @@ exports.rescore = (scorer, report, restrictionType, includedIDs) => {
30
30
  }
31
31
  // Otherwise, i.e. if any tool included by the restriction is not in the report:
32
32
  else {
33
- // Report this.
33
+ // Report this and quit.
34
34
  console.log(`ERROR: Report includes only tools ${Array.from(reportToolIDs).join(', ')}`);
35
+ return;
35
36
  }
36
37
  }
37
38
  // Otherwise, if issues are restricted:
@@ -93,8 +94,9 @@ exports.rescore = (scorer, report, restrictionType, includedIDs) => {
93
94
  }
94
95
  // Otherwise, i.e. if neither tools nor issues are restricted:
95
96
  else {
96
- // Report this.
97
+ // Report this and quit.
97
98
  console.log('ERROR: Neither tools nor issues are restricted');
99
+ return;
98
100
  }
99
101
  // Add rescoring data to the report.
100
102
  report.rescore = {