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