mirror of
https://github.com/versia-pub/api.git
synced 2026-03-13 04:09:15 +01:00
feat: ✨ Port code from Lysand Server and improve it
This commit is contained in:
parent
ef76ee4a5c
commit
bf8898acee
18 changed files with 733 additions and 89 deletions
12
federation/tests/index.test.ts
Normal file
12
federation/tests/index.test.ts
Normal 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();
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue