import { describe, it, expect } from "vitest";
import { render, screen } from "@testing-library/react";
import { Button } from "./button";
describe("Button", () => {
it.each(["icon", "icon-sm", "icon-lg", "icon-xs"] as const)("%s has a 44px hit area", (size) => {
render();
const cls = screen.getByRole("button").className;
expect(cls).toContain("relative");
expect(cls).toContain("after:size-11");
});
it("has a destructive-outline variant", () => {
render();
expect(screen.getByRole("button").className).toContain("text-destructive");
});
});