Update test expectations for buildRuntimeSceneFromDocument

This commit is contained in:
2026-04-04 19:36:03 +02:00
parent bc31cd6b10
commit c3a3820379

View File

@@ -295,21 +295,43 @@ describe("buildRuntimeSceneFromDocument", () => {
} }
} }
]); ]);
expect(runtimeScene.brushes[0].rotationDegrees).toEqual({
x: 0,
y: 0,
z: 0
});
expect(runtimeScene.brushes[0].faces.posY.material?.id).toBe("starter-concrete-checker"); expect(runtimeScene.brushes[0].faces.posY.material?.id).toBe("starter-concrete-checker");
expect(runtimeScene.colliders).toEqual([ expect(runtimeScene.colliders).toEqual([
{ {
kind: "box", kind: "box",
source: "brush", source: "brush",
brushId: "brush-room-floor", brushId: "brush-room-floor",
min: { center: {
x: -4, x: 0,
y: -1, y: -0.5,
z: -4 z: 0
}, },
max: { rotationDegrees: {
x: 4, x: 0,
y: 0, y: 0,
z: 4 z: 0
},
size: {
x: 8,
y: 1,
z: 8
},
worldBounds: {
min: {
x: -4,
y: -1,
z: -4
},
max: {
x: 4,
y: 0,
z: 4
}
} }
} }
]); ]);