From 26f4c1b8ac68843aab631dfabefdab7d93c93ab2 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 13 Apr 2026 21:26:55 +0200 Subject: [PATCH] Update test for runtime scene paths and segments --- tests/domain/build-runtime-scene.test.ts | 84 ++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/tests/domain/build-runtime-scene.test.ts b/tests/domain/build-runtime-scene.test.ts index 64efbb9d..d111d399 100644 --- a/tests/domain/build-runtime-scene.test.ts +++ b/tests/domain/build-runtime-scene.test.ts @@ -383,6 +383,90 @@ describe("buildRuntimeSceneFromDocument", () => { } } ]); + expect(runtimeScene.paths).toEqual([ + { + id: "path-lobby-route", + name: "Lobby Route", + visible: true, + enabled: true, + loop: false, + points: [ + { + pointId: "path-point-a", + position: { + x: -2, + y: 0, + z: -2 + } + }, + { + pointId: "path-point-b", + position: { + x: -2, + y: 0, + z: 1 + } + }, + { + pointId: "path-point-c", + position: { + x: 2, + y: 0, + z: 1 + } + } + ], + segments: [ + { + index: 0, + startPointId: "path-point-a", + endPointId: "path-point-b", + start: { + x: -2, + y: 0, + z: -2 + }, + end: { + x: -2, + y: 0, + z: 1 + }, + length: 3, + distanceStart: 0, + distanceEnd: 3, + tangent: { + x: 0, + y: 0, + z: 1 + } + }, + { + index: 1, + startPointId: "path-point-b", + endPointId: "path-point-c", + start: { + x: -2, + y: 0, + z: 1 + }, + end: { + x: 2, + y: 0, + z: 1 + }, + length: 4, + distanceStart: 3, + distanceEnd: 7, + tangent: { + x: 1, + y: 0, + z: 0 + } + } + ], + totalLength: 7 + } + ]); expect(runtimeScene.brushes[0].rotationDegrees).toEqual({ x: 0, y: 0,