mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
15 lines
569 B
TypeScript
15 lines
569 B
TypeScript
import { describe, expect, test } from "bun:test";
|
|
import { DateField, dateFieldConfigSchema } from "../../../../src/data";
|
|
import { fieldTestSuite } from "data/fields/field-test-suite";
|
|
import { bunTestRunner } from "adapter/bun/test";
|
|
|
|
describe("[data] DateField", async () => {
|
|
fieldTestSuite(bunTestRunner, DateField, { defaultValue: new Date(), schemaType: "date" });
|
|
|
|
// @todo: add datefield tests
|
|
test("week", async () => {
|
|
const field = new DateField("test", { type: "week" });
|
|
console.log(field.getValue("2021-W01", "submit"));
|
|
});
|
|
});
|