diff --git a/tests/components/FormBuilder/withConditional.test.tsx b/tests/components/FormBuilder/withConditional.test.tsx index ceddac4..7315842 100644 --- a/tests/components/FormBuilder/withConditional.test.tsx +++ b/tests/components/FormBuilder/withConditional.test.tsx @@ -13,7 +13,9 @@ describe("withConditional", () => { name: "test", type: "input", value: "", - conditions: [{ name: "test", value: "value" }], + conditions: { + allOf: [{ test: ["value"] }], + }, }; const form = renderHook(() => useForm({ @@ -31,7 +33,9 @@ describe("withConditional", () => { name: "test", type: "input", value: "", - conditions: [{ name: "test", value: "value" }], + conditions: { + allOf: [{ test: ["value"] }], + }, }; const form = renderHook(() => useForm()).result.current; render();