From 8ff4941f457cb575caa9b3a4508853310b0d7cfa Mon Sep 17 00:00:00 2001 From: devjoaov Date: Mon, 6 May 2024 15:38:32 -0300 Subject: [PATCH] test: update withCondition component tests --- tests/components/FormBuilder/withConditional.test.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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();