test.govlab/patterns/core/predicates/representation.predicate.test.ts
test.govlab/patterns/core/predicates/representation.predicate.test.ts is a file in Codebase Testing. 9 lines of code and 0 definitions.
import { describe, expect, it } from "vitest";
import { isRepresentation } from "@govlab/patterns/core/predicates/representation.predicate.ts";
describe("isRepresentation", () => {
it("accepts a registered representation name and refuses anything else", () => {
expect(isRepresentation("tree")).toBe(true);
expect(isRepresentation("unregistered")).toBe(false);
expect(isRepresentation(1)).toBe(false);
});
});