Fix type assertions in scene document validation tests

This commit is contained in:
2026-04-02 20:56:40 +02:00
parent 180825c661
commit 71d35401c8

View File

@@ -425,7 +425,7 @@ describe("validateSceneDocument", () => {
shadows: { shadows: {
...document.world.advancedRendering.shadows, ...document.world.advancedRendering.shadows,
mapSize: 3000, mapSize: 3000,
type: "ultra" as unknown as "basic", type: "ultra",
bias: Number.NaN bias: Number.NaN
}, },
ambientOcclusion: { ambientOcclusion: {
@@ -439,7 +439,7 @@ describe("validateSceneDocument", () => {
radius: -0.5 radius: -0.5
}, },
toneMapping: { toneMapping: {
mode: "filmic" as unknown as "none", mode: "filmic",
exposure: 0 exposure: 0
}, },
depthOfField: { depthOfField: {
@@ -447,7 +447,7 @@ describe("validateSceneDocument", () => {
focalLength: 0, focalLength: 0,
bokehScale: -2 bokehScale: -2
} }
}; } as any;
const validation = validateSceneDocument(document); const validation = validateSceneDocument(document);