From 55c088ec562bf9f93938b98bf510ced3314cab2a Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 19:28:38 +0200 Subject: [PATCH] Update junction mesh tests to use dedicated junction objects for corner and curve shapes --- .../spline-corridor-junction-mesh.test.ts | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/tests/geometry/spline-corridor-junction-mesh.test.ts b/tests/geometry/spline-corridor-junction-mesh.test.ts index d960a2e6..9310aae3 100644 --- a/tests/geometry/spline-corridor-junction-mesh.test.ts +++ b/tests/geometry/spline-corridor-junction-mesh.test.ts @@ -104,7 +104,7 @@ describe("spline corridor junction mesh generation", () => { clipDistance: 2 } ] - } as const; + }; const straight = buildSplineCorridorJunctionFootprint({ junction: createSplineCorridorJunction({ ...baseJunction, @@ -392,22 +392,24 @@ describe("spline corridor junction mesh generation", () => { clipDistance: 2 } ] - } as const; + }; + const cornerJunction = createSplineCorridorJunction({ + ...baseJunction, + shapeMode: "corner" + }); + const curveJunction = createSplineCorridorJunction({ + ...baseJunction, + shapeMode: "curve" + }); const cornerMeshData = buildSplineCorridorJunctionEdgeMeshData({ - junction: createSplineCorridorJunction({ - ...baseJunction, - shapeMode: "corner" - }), + junction: cornerJunction, paths: [pathA, pathB], - edge: baseJunction.edge + edge: cornerJunction.edge }); const curveMeshData = buildSplineCorridorJunctionEdgeMeshData({ - junction: createSplineCorridorJunction({ - ...baseJunction, - shapeMode: "curve" - }), + junction: curveJunction, paths: [pathA, pathB], - edge: baseJunction.edge + edge: curveJunction.edge }); expect(cornerMeshData?.footprintPointCount).toBe(12);