Update unit tests for RuntimeHost positioning assertions

This commit is contained in:
2026-04-25 18:36:48 +02:00
parent 1bb528bce1
commit 2e1b6a6d55

View File

@@ -3123,7 +3123,7 @@ describe("RuntimeHost", () => {
x: 1,
z: -2
});
expect(placement.luxPosition.y).toBeGreaterThan(1.8);
expect(placement.luxPosition.y).toBeCloseTo(2.18);
expect(placement.activeMarkerPosition.y).toBeGreaterThan(
placement.luxPosition.y
);
@@ -3195,6 +3195,7 @@ describe("RuntimeHost", () => {
hostInternals.updateRuntimeTargetingVisuals(0.1);
expect(hostInternals.targetingLuxGroup.position.x).toBeGreaterThan(0.005);
expect(hostInternals.targetingLuxGroup.position.y).toBeGreaterThan(0.832);
expect(hostInternals.targetingLuxGroup.position.z).toBeGreaterThan(0);
expect(hostInternals.targetingLuxGroup.position.z).toBeLessThan(4);