feat: Port code from Lysand Server and improve it

This commit is contained in:
Jesse Wierzbinski 2024-05-13 21:00:05 -10:00
parent ef76ee4a5c
commit bf8898acee
No known key found for this signature in database
18 changed files with 733 additions and 89 deletions

View file

@ -0,0 +1,12 @@
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();
});
});