import { describe, it, expect } from "vitest"; import { readFileSync } from "fs"; import { resolve } from "path"; describe("Terms of Service content", () => { const termsPath = resolve(__dirname, "../../public/src/terms.html"); const terms = readFileSync(termsPath, "utf-8"); it("should not reference discontinued Free Tier", () => { expect(terms).not.toContain("Free Tier"); expect(terms).not.toContain("100 PDF conversions"); }); it("should describe the Demo tier", () => { expect(terms).toContain("Demo (Free)"); expect(terms).toContain("5 requests per hour"); expect(terms).toContain("Testing and evaluation"); }); it("should reference demo usage not free tier in SLA section", () => { expect(terms).not.toMatch(/no SLA for free tier/i); expect(terms).toContain("no SLA for demo usage"); }); });