import { describe, expect, it } from "vitest";
import { cn } from "../src/utils";

describe("cn utility", () => {
  it("joins class names", () => {
    expect(cn("foo", "bar")).toBe("foo bar");
  });
  it("filters falsy values", () => {
    expect(cn("foo", undefined, null, false, "bar")).toBe("foo bar");
  });
  it("returns empty string for no classes", () => {
    expect(cn()).toBe("");
  });
});
