From 503e65103e78d66696a9ff955dc622a5fb9739ee Mon Sep 17 00:00:00 2001 From: Hoid Date: Thu, 5 Mar 2026 14:11:00 +0100 Subject: [PATCH] fix: replace stale Free Tier with Demo tier in Terms of Service (BUG-104) - Section 2.1: replaced Free Tier (100 PDFs, 10 req/min) with Demo (Free) - no account, 5 req/hr, evaluation only - Section 5.1: changed 'no SLA for free tier' to 'no SLA for demo usage' - Added terms-content regression test (3 tests) - 487 tests passing across 33 files --- public/src/terms.html | 13 +++++++------ public/terms.html | 13 +++++++------ src/__tests__/terms-content.test.ts | 24 ++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 12 deletions(-) create mode 100644 src/__tests__/terms-content.test.ts diff --git a/public/src/terms.html b/public/src/terms.html index b36f918..e4e8f03 100644 --- a/public/src/terms.html +++ b/public/src/terms.html @@ -41,12 +41,13 @@

2. Service Plans

-

2.1 Free Tier

+

2.1 Demo (Free)

2.2 Pro Tier

@@ -97,7 +98,7 @@

5.1 Uptime

diff --git a/public/terms.html b/public/terms.html index 5c93f9e..7684a22 100644 --- a/public/terms.html +++ b/public/terms.html @@ -92,12 +92,13 @@ footer .container { display: flex; justify-content: space-between; align-items:

2. Service Plans

-

2.1 Free Tier

+

2.1 Demo (Free)

2.2 Pro Tier

@@ -148,7 +149,7 @@ footer .container { display: flex; justify-content: space-between; align-items:

5.1 Uptime

diff --git a/src/__tests__/terms-content.test.ts b/src/__tests__/terms-content.test.ts new file mode 100644 index 0000000..3746cfb --- /dev/null +++ b/src/__tests__/terms-content.test.ts @@ -0,0 +1,24 @@ +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"); + }); +});