refactor(app): remove unused components

This commit is contained in:
2026-07-13 14:02:27 +08:00
parent b89bde1b55
commit 34c6f5523c
29 changed files with 32 additions and 892 deletions
@@ -0,0 +1,18 @@
import { renderToStaticMarkup } from "react-dom/server";
import { describe, expect, it } from "vitest";
import { SubscriptionCtaButton } from "../subscription-cta-button";
describe("subscription Tailwind components", () => {
it("renders SubscriptionCtaButton with loading state", () => {
const html = renderToStaticMarkup(
<SubscriptionCtaButton isLoading>Pay now</SubscriptionCtaButton>,
);
expect(html).toContain("min-h-[clamp(48px,9.63vw,52px)]");
expect(html).toContain("bg-[linear-gradient(269deg");
expect(html).toContain("animate-spin");
expect(html).toContain("disabled");
expect(html).toContain("Pay now");
});
});