From 60a4f01adf26cf9a59ce62bdb187a11da7fa3e2d Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 13 Apr 2026 21:30:47 +0200 Subject: [PATCH] Use createDefaultWorldSettings in createEmptySceneDocument --- .../create-empty-scene-document.test.ts | 60 +------------------ 1 file changed, 2 insertions(+), 58 deletions(-) diff --git a/tests/domain/create-empty-scene-document.test.ts b/tests/domain/create-empty-scene-document.test.ts index 4a42c3fd..f7a2ebcb 100644 --- a/tests/domain/create-empty-scene-document.test.ts +++ b/tests/domain/create-empty-scene-document.test.ts @@ -1,6 +1,7 @@ import { describe, expect, it } from "vitest"; import { SCENE_DOCUMENT_VERSION, createEmptySceneDocument } from "../../src/document/scene-document"; +import { createDefaultWorldSettings } from "../../src/document/world-settings"; import { STARTER_MATERIAL_LIBRARY } from "../../src/materials/starter-material-library"; describe("createEmptySceneDocument", () => { @@ -9,64 +10,7 @@ describe("createEmptySceneDocument", () => { expect(document.version).toBe(SCENE_DOCUMENT_VERSION); expect(document.name).toBe("Untitled Scene"); - expect(document.world).toEqual({ - background: { - mode: "solid", - colorHex: "#2f3947" - }, - ambientLight: { - colorHex: "#f7f1e8", - intensity: 1 - }, - sunLight: { - colorHex: "#fff1d5", - intensity: 1.75, - direction: { - x: -0.6, - y: 1, - z: 0.35 - } - }, - advancedRendering: { - enabled: false, - shadows: { - enabled: false, - mapSize: 2048, - type: "pcfSoft", - bias: -0.0005 - }, - ambientOcclusion: { - enabled: false, - intensity: 1, - radius: 0.5, - samples: 8 - }, - bloom: { - enabled: false, - intensity: 0.75, - threshold: 0.85, - radius: 0.35 - }, - toneMapping: { - mode: "acesFilmic", - exposure: 1 - }, - depthOfField: { - enabled: false, - focusDistance: 10, - focalLength: 0.03, - bokehScale: 1.5 - }, - whiteboxBevel: { - enabled: false, - edgeWidth: 0.14, - normalStrength: 0.75 - }, - fogPath: "performance", - waterPath: "performance", - waterReflectionMode: "none" - } - }); + expect(document.world).toEqual(createDefaultWorldSettings()); expect(document.brushes).toEqual({}); expect(document.paths).toEqual({}); expect(document.entities).toEqual({});