api/federation/tests/index.test.ts
2024-05-14 12:44:34 -10:00

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();
});
});