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 });