From 1032dcdbded1604f40f6dfebde662e984914fa54 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 27 Apr 2026 15:45:54 +0200 Subject: [PATCH] Initialize EditorSimulationController in ViewportCanvas tests --- tests/unit/viewport-canvas.test.tsx | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/tests/unit/viewport-canvas.test.tsx b/tests/unit/viewport-canvas.test.tsx index fa7d3ae2..adc90064 100644 --- a/tests/unit/viewport-canvas.test.tsx +++ b/tests/unit/viewport-canvas.test.tsx @@ -150,8 +150,7 @@ describe("ViewportCanvas", () => { panelId="topLeft" world={sceneDocument.world} sceneDocument={sceneDocument} - editorSimulationScene={null} - editorSimulationClock={null} + editorSimulationController={new EditorSimulationController()} projectAssets={sceneDocument.assets} loadedModelAssets={{}} loadedImageAssets={{}} @@ -211,8 +210,7 @@ describe("ViewportCanvas", () => { panelId="topLeft" world={sceneDocument.world} sceneDocument={sceneDocument} - editorSimulationScene={null} - editorSimulationClock={null} + editorSimulationController={new EditorSimulationController()} projectAssets={sceneDocument.assets} loadedModelAssets={{}} loadedImageAssets={{}} @@ -274,8 +272,7 @@ describe("ViewportCanvas", () => { panelId="topLeft" world={sceneDocument.world} sceneDocument={sceneDocument} - editorSimulationScene={null} - editorSimulationClock={null} + editorSimulationController={new EditorSimulationController()} projectAssets={sceneDocument.assets} loadedModelAssets={{}} loadedImageAssets={{}} @@ -400,8 +397,7 @@ describe("ViewportCanvas", () => { panelId="topLeft" world={sceneDocument.world} sceneDocument={sceneDocument} - editorSimulationScene={null} - editorSimulationClock={null} + editorSimulationController={new EditorSimulationController()} projectAssets={sceneDocument.assets} loadedModelAssets={{}} loadedImageAssets={{}} @@ -469,8 +465,7 @@ describe("ViewportCanvas", () => { panelId="topLeft" world={sceneDocument.world} sceneDocument={sceneDocument} - editorSimulationScene={null} - editorSimulationClock={null} + editorSimulationController={new EditorSimulationController()} projectAssets={sceneDocument.assets} loadedModelAssets={{}} loadedImageAssets={{}} @@ -533,8 +528,7 @@ describe("ViewportCanvas", () => { panelId="topLeft" world={sceneDocument.world} sceneDocument={sceneDocument} - editorSimulationScene={null} - editorSimulationClock={null} + editorSimulationController={new EditorSimulationController()} projectAssets={sceneDocument.assets} loadedModelAssets={{}} loadedImageAssets={{}} @@ -614,8 +608,7 @@ describe("ViewportCanvas", () => { panelId="topLeft" world={focusedSceneDocument.world} sceneDocument={focusedSceneDocument} - editorSimulationScene={null} - editorSimulationClock={null} + editorSimulationController={new EditorSimulationController()} projectAssets={focusedSceneDocument.assets} loadedModelAssets={{}} loadedImageAssets={{}} @@ -657,8 +650,7 @@ describe("ViewportCanvas", () => { panelId="topLeft" world={updatedSceneDocument.world} sceneDocument={updatedSceneDocument} - editorSimulationScene={null} - editorSimulationClock={null} + editorSimulationController={new EditorSimulationController()} projectAssets={updatedSceneDocument.assets} loadedModelAssets={{}} loadedImageAssets={{}}