Update CSS for runner canvas and add new test cases

This commit is contained in:
2026-04-12 14:57:20 +02:00
parent 2aeb38d97c
commit 7f6b592852
2 changed files with 16 additions and 2 deletions

View File

@@ -52,6 +52,11 @@ describe("runtime project time", () => {
dayCount: 0,
dayLengthMinutes: 24
});
const lateDawn = resolveRuntimeDayNightWorldState(world, time, {
timeOfDayHours: 7.9,
dayCount: 0,
dayLengthMinutes: 24
});
const postSunset = resolveRuntimeDayNightWorldState(world, time, {
timeOfDayHours: 20.5,
dayCount: 0,
@@ -85,6 +90,10 @@ describe("runtime project time", () => {
);
expect(midnight.moonLight?.intensity ?? 0).toBeGreaterThan(0);
expect(preSunrise.moonLight?.intensity ?? 0).toBeGreaterThan(0);
expect(dawn.moonLight?.intensity ?? 0).toBeGreaterThan(0);
expect(lateDawn.moonLight?.intensity ?? 0).toBeLessThan(
dawn.moonLight?.intensity ?? 0
);
expect(postSunset.moonLight?.intensity ?? 0).toBeGreaterThan(0);
expect(noon.moonLight).toBeNull();
expect(preSunrise.nightBackgroundOverlay?.assetId).toBe("asset-night-sky");