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.colliders).toEqual([
{
kind: "box",
source: "brush",
brushId: "brush-room-floor",
min: {
x: -4,
y: -1,
z: -4
center: {
x: 0,
y: -0.5,
z: 0
},
max: {
x: 4,
rotationDegrees: {
x: 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
}
}
}
]);