11 lines
485 B
TypeScript
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);
|
|
});
|