feat(plans): publish honest Free and Pro
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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);
|
||||
});
|
||||
Reference in New Issue
Block a user