yamltest 1.0.4 → 1.0.5

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/src/core.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yamltest",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Declarative YAML-based HTTP, command, and Kubernetes test runner",
5
5
  "main": "./src/index.js",
6
6
  "bin": {
package/src/core.js CHANGED
@@ -612,7 +612,7 @@ async function executeHttpTest(test) {
612
612
  test.http.url = `${parsedUrl.protocol}//${parsedUrl.host}`;
613
613
  // Prepend the extracted path to any explicit path (avoid double slashes)
614
614
  const explicitPath = test.http.path || '';
615
- test.http.path = urlPath.replace(/\/$/, '') + (explicitPath.startsWith('/') ? explicitPath : '/' + explicitPath);
615
+ test.http.path = urlPath.replace(/\/$/, '') + (explicitPath ? (explicitPath.startsWith('/') ? explicitPath : '/' + explicitPath) : '');
616
616
  }
617
617
  }
618
618