Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Fix TS in the test

Andrey Okonetchnikov2df94dba3be3
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", () => {