mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 08:28:19 +01:00
16 lines
437 B
TypeScript
16 lines
437 B
TypeScript
import { describe, expect, it } from "bun:test";
|
|
import type { ValidationError } from "zod-validation-error";
|
|
import { EntityValidator } from "../index";
|
|
|
|
describe("Package testing", () => {
|
|
it("should not validate a bad Note", async () => {
|
|
const badObject = {
|
|
IamBad: "Note",
|
|
};
|
|
|
|
const validator = new EntityValidator();
|
|
|
|
expect(validator.Note(badObject)).rejects.toThrow();
|
|
});
|
|
});
|