refactor(app): remove unused components
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user