From bcb58816ada6a1905eced733e8d1480f7aa8cbdb Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 28 Apr 2026 14:27:48 +0200 Subject: [PATCH] Add tests for sun light intensity during dawn and dusk --- tests/domain/runtime-project-time.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/domain/runtime-project-time.test.ts b/tests/domain/runtime-project-time.test.ts index da01a910..d45c0ed3 100644 --- a/tests/domain/runtime-project-time.test.ts +++ b/tests/domain/runtime-project-time.test.ts @@ -226,9 +226,11 @@ describe("runtime project time", () => { }); expect(midDawn.sunLight.direction.y).toBeLessThan(-0.05); + expect(midDawn.sunLight.intensity).toBeGreaterThan(0); expect(Math.abs(dawnEnd.sunLight.direction.y)).toBeLessThan(0.05); expect(Math.abs(duskEnd.sunLight.direction.y)).toBeLessThan(0.05); expect(lateDusk.sunLight.direction.y).toBeLessThan(-0.05); + expect(lateDusk.sunLight.intensity).toBeGreaterThan(0); expect(midDawn.moonLight?.direction.y ?? 0).toBeGreaterThan(0.05); expect(Math.abs(preDawnEnd.moonLight?.direction.y ?? 1)).toBeLessThan(0.05); expect(Math.abs(duskEnd.moonLight?.direction.y ?? 1)).toBeLessThan(0.05);