mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 16:38:20 +01:00
13 lines
317 B
TypeScript
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();
|
||
|
|
});
|
||
|
|
});
|