Skip to content

Commit

Permalink
test: update withCondition component tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devjoaov committed May 6, 2024
1 parent b53ac0b commit 8ff4941
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/components/FormBuilder/withConditional.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ describe("withConditional", () => {
name: "test",
type: "input",
value: "",
conditions: [{ name: "test", value: "value" }],
conditions: {
allOf: [{ test: ["value"] }],
},
};
const form = renderHook(() =>
useForm({
Expand All @@ -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(<ConditionalComponent field={field} form={form} />);
Expand Down

0 comments on commit 8ff4941

Please sign in to comment.