@wener/console
Version:
Base console UI toolkit
11 lines (10 loc) • 359 B
JavaScript
import { describe, expect, test } from "vitest";
import { cn } from "./cn.js";
describe("cn", function () {
test("should merge class", function () {
expect(cn("p-1 p-2")).toBe("p-2");
});
test("should merge daisy ui", function () {
expect(cn("btn-info btn-xs btn-sm btn-md", "btn-success")).toBe("btn-md btn-success");
});
});