auto-git:

[change] tests/domain/delete-project-asset.test.ts
This commit is contained in:
2026-04-22 12:35:38 +02:00
parent 5bbdbebbda
commit 41e87b1b21

View File

@@ -107,6 +107,17 @@ function createProjectDocumentFixture() {
mode: "image",
assetId: imageAsset.id,
environmentIntensity: 0.8
},
timeOfDay: {
...baseScene.world.timeOfDay,
dawn: {
...baseScene.world.timeOfDay.dawn,
background: {
mode: "image",
assetId: imageAsset.id,
environmentIntensity: 0.55
}
}
}
},
modelInstances: {
@@ -198,6 +209,11 @@ describe("deleteProjectAssetFromProjectDocument", () => {
expect(nextScene.world.background).toEqual(
createDefaultWorldSettings().background
);
expect(nextScene.world.timeOfDay.dawn.background).toEqual({
mode: "image",
assetId: "",
environmentIntensity: 0.55
});
});
it("silences sound emitters and removes sound links when deleting an audio asset", () => {
@@ -222,4 +238,4 @@ describe("deleteProjectAssetFromProjectDocument", () => {
"link-teleport"
]);
});
});
});