1import { describe, it, expect } from "vitest";2import { HTTP_URL } from "./helpers.ts";34describe("NIP-11", () => {5 it("serves the information document with limitations", async () => {6 const resp = await fetch(HTTP_URL, { headers: { Accept: "application/nostr+json" } });7 expect(resp.status).toBe(200);8 expect(resp.headers.get("content-type")).toContain("application/nostr+json");9 const doc: any = await resp.json();10 expect(typeof doc.name).toBe("string");11 for (const n of [1, 9, 11, 40, 42, 45, 50, 62, 67, 70, 77]) expect(doc.supported_nips).toContain(n);12 expect(doc.limitation.max_subid_length).toBeGreaterThanOrEqual(64);13 expect(typeof doc.limitation.max_limit).toBe("number");14 });15});