testilo 46.0.0 → 46.0.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": "46.0.0",
3
+ "version": "46.0.1",
4
4
  "description": "Prepares Testaro jobs and processes Testaro reports",
5
5
  "main": "call.js",
6
6
  "scripts": {
@@ -55,11 +55,11 @@ exports.collateExcerpts = report => {
55
55
  standardResult.instances.forEach(instance => {
56
56
  // Get the excerpt and path ID, if any, of the element.
57
57
  const {excerpt, pathID} = instance;
58
- // If both exist and the directory contains no excerpt for the path ID and tool:
59
- if (excerpt && pathID && ! excerpts[pathID][which]) {
60
- // Add the excerpt to the directory.
61
- excerpts[pathID] ??= {};
62
- excerpts[pathID][which] = excerpt;
58
+ excerpts[pathID] ??= {};
59
+ // If both exist:
60
+ if (excerpt && pathID) {
61
+ // Add the excerpt to the directory unless one already exists.
62
+ excerpts[pathID][which] ??= excerpt;
63
63
  }
64
64
  });
65
65
  }