From 2df94dba3be310a92a751feb919a792f13ba5155 Mon Sep 17 00:00:00 2001 From: Andrey Okonetchnikov Date: Thu, 23 Jun 2022 15:40:16 +0200 Subject: [PATCH] Fix TS in the test --- app/designer/features/props-panel/use-props-logic.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/designer/features/props-panel/use-props-logic.test.ts b/app/designer/features/props-panel/use-props-logic.test.ts index d1317e2b85..a64591fcf4 100644 --- a/app/designer/features/props-panel/use-props-logic.test.ts +++ b/app/designer/features/props-panel/use-props-logic.test.ts @@ -1,4 +1,5 @@ import { renderHook, act } from "@testing-library/react-hooks"; +import { SelectedInstanceData } from "~/shared/canvas-components"; import { usePropsLogic } from "./use-props-logic"; const selectedInstanceData = { @@ -15,8 +16,10 @@ const selectedInstanceData = { value: true, }, ], + instanceId: "2", + treeId: "1", }, -}; +} as SelectedInstanceData; describe("usePropsLogic", () => { test("should return initial props for a given instance", () => {