Add night sky asset to test document in runner-canvas.test.tsx
This commit is contained in:
@@ -391,6 +391,21 @@ describe("RunnerCanvas", () => {
|
|||||||
|
|
||||||
it("renders the night background overlay behind the scene when the night profile is active", async () => {
|
it("renders the night background overlay behind the scene when the night profile is active", async () => {
|
||||||
const document = createEmptySceneDocument();
|
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";
|
document.time.nightBackground.assetId = "asset-night-sky";
|
||||||
const runtimeScene = buildRuntimeSceneFromDocument(document);
|
const runtimeScene = buildRuntimeSceneFromDocument(document);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user