From 4c98e2d6a62a7f5b1b7a341e78f43b50a7eb15de Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 27 Apr 2026 17:28:34 +0200 Subject: [PATCH] Update ThirdPersonNavigationController tests to correctly access context and DOM element --- tests/unit/third-person-navigation-controller.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/third-person-navigation-controller.test.ts b/tests/unit/third-person-navigation-controller.test.ts index d11ce7f6..a2a57f92 100644 --- a/tests/unit/third-person-navigation-controller.test.ts +++ b/tests/unit/third-person-navigation-controller.test.ts @@ -176,7 +176,7 @@ describe("ThirdPersonNavigationController", () => { id: "entity-player-start-invert-third-person", invertMouseCameraHorizontal: true }); - const { context, domElement } = createRuntimeControllerContext(playerStart); + const { context } = createRuntimeControllerContext(playerStart); const controller = new ThirdPersonNavigationController(); const controllerInternals = controller as unknown as { pointerLocked: boolean; @@ -193,7 +193,7 @@ describe("ThirdPersonNavigationController", () => { configurable: true, value: 0 }); - Object.defineProperty(domElement, "requestPointerLock", { + Object.defineProperty(context.domElement, "requestPointerLock", { configurable: true, value: requestPointerLock });