mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
14 lines
464 B
TypeScript
14 lines
464 B
TypeScript
import { describe, expect, test } from "bun:test";
|
|
import { DateField } from "../../../../src/data";
|
|
import { runBaseFieldTests } from "./inc";
|
|
|
|
describe("[data] DateField", async () => {
|
|
runBaseFieldTests(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"));
|
|
});
|
|
});
|