api/federation/tests/index.test.ts

15 lines
373 B
TypeScript
Raw Permalink Normal View History

import { describe, expect, it } from "bun:test";
import { EntityValidator } from "../index.ts";
describe("Package testing", () => {
it("should not validate a bad Note", () => {
const badObject = {
IamBad: "Note",
};
const validator = new EntityValidator();
expect(validator.Note(badObject)).rejects.toThrow();
});
});