api/federation/tests/index.test.ts
2024-05-13 21:00:05 -10:00

13 lines
317 B
TypeScript

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