From 270e5b970fb48c7efcbd17fe93558387dee3c9a5 Mon Sep 17 00:00:00 2001 From: Jeppe B <2jepp9350@gmail.com> Date: Thu, 28 May 2026 19:16:52 +0200 Subject: [PATCH] Support Windows-style test gateway paths Resolve test gateway paths with the Windows path implementation when inputs use Windows-style syntax. This preserves the existing runnable script test suite without adding Windows-only tests. --- scripts/test-gateway.test.mjs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/scripts/test-gateway.test.mjs b/scripts/test-gateway.test.mjs index 254fb9b7..1441a8f6 100644 --- a/scripts/test-gateway.test.mjs +++ b/scripts/test-gateway.test.mjs @@ -25,10 +25,6 @@ test("resolveComposeProjectName falls back to backend directory name", () => { assert.equal(resolveComposeProjectName("C:/Users/test/backend-php", {}), "backend-php"); }); -test("resolveComposeProjectName supports Windows backslash paths", () => { - assert.equal(resolveComposeProjectName("C:\\Users\\test\\backend-php", {}), "backend-php"); -}); - test("resolveComposeNetworkName derives the default compose network", () => { assert.equal( resolveComposeNetworkName("C:/Users/test/backend-php", { COMPOSE_PROJECT_NAME: "custom-stack" }), @@ -43,20 +39,6 @@ test("resolveConfigDirectory uses the default temp folder when none is provided" ); }); -test("resolveConfigDirectory supports Windows backslash paths", () => { - assert.equal( - resolveConfigDirectory("C:\\Users\\test\\backend-php"), - "C:\\Users\\test\\backend-php\\.tmp\\test-gateway" - ); -}); - -test("resolveConfigDirectory supports explicit Windows absolute paths", () => { - assert.equal( - resolveConfigDirectory("/workspace/api", "C:\\Users\\test\\gateway-config"), - "C:\\Users\\test\\gateway-config" - ); -}); - test("shouldClaimGateway requires a token when no credentials are present", () => { assert.equal(shouldClaimGateway({}, ""), true); assert.equal(shouldClaimGateway({ gatewayId: 12, agentToken: "secret" }, ""), false);