From 7ed32f6feed34e74fdfcf59b05b479e1b0dcd533 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 11 Apr 2026 22:16:03 +0200 Subject: [PATCH] Refactor and update third-person navigation controller tests --- tests/unit/third-person-navigation-controller.test.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/unit/third-person-navigation-controller.test.ts b/tests/unit/third-person-navigation-controller.test.ts index bee4e19e..40dc58fe 100644 --- a/tests/unit/third-person-navigation-controller.test.ts +++ b/tests/unit/third-person-navigation-controller.test.ts @@ -57,6 +57,11 @@ function createRuntimeControllerContext( } ); const domElement = document.createElement("canvas"); + const createVolumeState = () => ({ + inWater: false, + inFog: false, + waterSurfaceHeight: null + }); return { context: { @@ -89,10 +94,7 @@ function createRuntimeControllerContext( slopeDegrees: null }), canOccupyPlayerShape: () => true, - resolvePlayerVolumeState: () => ({ - inWater: false, - inFog: false - }), + resolvePlayerVolumeState: () => createVolumeState(), resolveThirdPersonCameraCollision: ( _pivot: Vec3, desiredCameraPosition: Vec3