Files
jobtrackingapp/job-tracker-ui/src/planCatalog.test.ts
cesnimda a25c31b93a
CI and Deploy / test (pull_request) Successful in 5m6s
CI and Deploy / deploy (pull_request) Has been skipped
feat(plans): publish honest Free and Pro
2026-08-15 18:04:18 +02:00

11 lines
485 B
TypeScript

import { PUBLIC_PLANS, publicPlan } from "./planCatalog";
test("publishes only capability-based Free and Pro plans", () => {
expect(PUBLIC_PLANS.map((plan) => plan.id)).toEqual(["free", "pro"]);
expect(publicPlan("free").summary).toMatch(/without AI generation/i);
expect(publicPlan("pro").features).toContain("Everything in Free");
const publicCopy = JSON.stringify(PUBLIC_PLANS);
expect(publicCopy).not.toMatch(/[£$€]|unlimited|trial|billed|per month|per year/i);
});