Files
utils/tests/classNames.test.ts
2024-03-12 21:23:19 +02:00

11 lines
260 B
TypeScript

import { expect, test } from "@jest/globals";
import { classNames } from "../src";
test("joins html class strings", () => {
let isVisible = false;
expect(classNames("bg-blue-300", isVisible ? "block" : "hidden")).toBe(
"bg-blue-300 hidden",
);
});