This commit is contained in:
dswbx
2025-06-21 17:05:27 +02:00
parent 42edce904f
commit 6e78a4c238
37 changed files with 215 additions and 125 deletions
@@ -1,6 +1,7 @@
import { describe, expect, test } from "bun:test";
import { TextField } from "../../../../src/data";
import { TextField, textFieldConfigSchema } from "../../../../src/data";
import { fieldTestSuite, transformPersist } from "data/fields/field-test-suite";
import { bunTestRunner } from "adapter/bun/test";
describe("[data] TextField", async () => {
test("transformPersist (config)", async () => {
@@ -11,5 +12,5 @@ describe("[data] TextField", async () => {
expect(transformPersist(field, "abc")).resolves.toBe("abc");
});
fieldTestSuite({ expect, test }, TextField, { defaultValue: "abc", schemaType: "text" });
fieldTestSuite(bunTestRunner, TextField, { defaultValue: "abc", schemaType: "text" });
});