Skip to content

Commit

Permalink
fix: use zfd.file
Browse files Browse the repository at this point in the history
  • Loading branch information
airjp73 committed Jul 8, 2024
1 parent 7b33154 commit e8b7674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/zod-form-data/src/zod-form-data.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ describe("zod helpers", () => {

it("should handle arrays of Files", () => {
const s = zfd.formData({
myRepeatable: zfd.repeatable(z.any()),
myRepeatable: zfd.repeatable(z.array(zfd.file())),
});
const fd = new FormData();
const f1 = new File(["test"], "test.txt", { type: "text/plain" });
Expand Down

0 comments on commit e8b7674

Please sign in to comment.