From 1c29b43e1adec7d22f63621242ad5feaf98c6773 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 12 Apr 2026 14:35:48 +0200 Subject: [PATCH] Update tests for runtime project time --- tests/domain/runtime-project-time.test.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/domain/runtime-project-time.test.ts b/tests/domain/runtime-project-time.test.ts index dc12fcfe..afc012af 100644 --- a/tests/domain/runtime-project-time.test.ts +++ b/tests/domain/runtime-project-time.test.ts @@ -67,10 +67,12 @@ describe("runtime project time", () => { expect(midnight.ambientLight.intensity).toBeLessThan( noon.ambientLight.intensity ); - expect(preSunrise.sunLight.intensity).toBeGreaterThan( - midnight.sunLight.intensity + expect(preSunrise.ambientLight.intensity).toBeGreaterThan( + midnight.ambientLight.intensity + ); + expect(preSunrise.ambientLight.intensity).toBeLessThan( + noon.ambientLight.intensity ); - expect(preSunrise.sunLight.intensity).toBeLessThan(noon.sunLight.intensity); expect(dawn.sunLight.colorHex).not.toBe(noon.sunLight.colorHex); expect(dawn.sunLight.intensity).toBeGreaterThan(preSunrise.sunLight.intensity); expect(postSunset.sunLight.intensity).toBeLessThan(noon.sunLight.intensity); @@ -89,6 +91,7 @@ describe("runtime project time", () => { expect(midnight.sunLight.direction.y).toBeLessThan(0); if ( + preSunrise.background.mode !== "verticalGradient" || dawn.background.mode !== "verticalGradient" || noon.background.mode !== "verticalGradient" || midnight.background.mode !== "verticalGradient" @@ -96,6 +99,9 @@ describe("runtime project time", () => { throw new Error("Expected a gradient background for the day/night test."); } + expect(preSunrise.background.topColorHex).not.toBe( + midnight.background.topColorHex + ); expect(dawn.background.topColorHex).not.toBe(noon.background.topColorHex); expect(midnight.background.topColorHex).not.toBe(noon.background.topColorHex); expect(midnight.background.bottomColorHex).not.toBe(