From 2cc0ac1dccea28f38cdc04bf2bcadf746bdbaba4 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 27 Apr 2026 00:32:34 +0200 Subject: [PATCH] Update transform preview handler name and error message --- tests/unit/transform-foundation.integration.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/transform-foundation.integration.test.tsx b/tests/unit/transform-foundation.integration.test.tsx index 1aabb3bb..ff7818a9 100644 --- a/tests/unit/transform-foundation.integration.test.tsx +++ b/tests/unit/transform-foundation.integration.test.tsx @@ -305,12 +305,12 @@ function emitTransformPreview( viewportHost: ReturnType, transformSession: ActiveTransformSession ) { - const handler = viewportHost.setTransformSessionChangeHandler.mock.calls.at( + const handler = viewportHost.setTransformPreviewChangeHandler.mock.calls.at( -1 - )?.[0] as ((transformSession: TransformSessionState) => void) | undefined; + )?.[0] as ((transformSession: ActiveTransformSession) => void) | undefined; if (handler === undefined) { - throw new Error("Transform session change handler was not registered."); + throw new Error("Transform preview change handler was not registered."); } act(() => {