From 2fb9df6d3804637c2e7e7471c5b645c48da72e89 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 22 Apr 2026 16:30:36 +0200 Subject: [PATCH] auto-git: [change] tests/domain/runtime-project-time.test.ts --- tests/domain/runtime-project-time.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/domain/runtime-project-time.test.ts b/tests/domain/runtime-project-time.test.ts index a9f7d653..eec3ca48 100644 --- a/tests/domain/runtime-project-time.test.ts +++ b/tests/domain/runtime-project-time.test.ts @@ -209,6 +209,11 @@ describe("runtime project time", () => { dayCount: 0, dayLengthMinutes: 24 }); + const preDawnEnd = resolveRuntimeDayNightWorldState(world, time, { + timeOfDayHours: 7.99, + dayCount: 0, + dayLengthMinutes: 24 + }); const duskEnd = resolveRuntimeDayNightWorldState(world, time, { timeOfDayHours: 21, dayCount: 0, @@ -225,7 +230,7 @@ describe("runtime project time", () => { expect(Math.abs(duskEnd.sunLight.direction.y)).toBeLessThan(0.05); expect(lateDusk.sunLight.direction.y).toBeLessThan(-0.05); expect(midDawn.moonLight?.direction.y ?? 0).toBeGreaterThan(0.05); - expect(Math.abs(dawnEnd.moonLight?.direction.y ?? 1)).toBeLessThan(0.05); + expect(Math.abs(preDawnEnd.moonLight?.direction.y ?? 1)).toBeLessThan(0.05); expect(Math.abs(duskEnd.moonLight?.direction.y ?? 1)).toBeLessThan(0.05); expect(lateDusk.moonLight?.direction.y ?? 0).toBeGreaterThan(0.05); });