Add night sky asset to test document in runner-canvas.test.tsx

This commit is contained in:
2026-04-12 14:57:48 +02:00
parent 781140ea9a
commit 08cbc97446

View File

@@ -391,6 +391,21 @@ describe("RunnerCanvas", () => {
it("renders the night background overlay behind the scene when the night profile is active", async () => {
const document = createEmptySceneDocument();
document.assets["asset-night-sky"] = {
id: "asset-night-sky",
kind: "image",
sourceName: "night-sky.png",
mimeType: "image/png",
storageKey: "project-asset:asset-night-sky",
byteLength: 2048,
metadata: {
kind: "image",
width: 1024,
height: 512,
hasAlpha: false,
warnings: []
}
};
document.time.nightBackground.assetId = "asset-night-sky";
const runtimeScene = buildRuntimeSceneFromDocument(document);