SPB Git

spb/vquant Public MIT

VibeQuant — AI-powered institutional-grade financial intelligence platform.

TypeScript 84.3% Python 11.7% JavaScript 1.6% CSS 1.5% HTML 0.7%
1.2 KB · 42 lines typescript
Raw Blame History
1/*2 * =============================================================================3 *  VibeQuant (vquant) — AI-Powered Financial Intelligence Platform4 * -----------------------------------------------------------------------------5 *  File:      client/src/lib/utils.test.ts6 *7 *  Author:    Simon-Pierre Boucher8 *  Contact:   contact@spboucher.ai9 *  Website:   https://www.spboucher.ai10 *  Demo:      https://www.vquant.ai11 *  License:   MIT (see LICENSE)12 *13 *  Copyright © 2026 Simon-Pierre Boucher. All rights reserved.14 * =============================================================================15 */1617import { describe, it, expect } from "vitest";18import { cn } from "./utils";1920describe("cn (className merge)", () => {21  it("merges class names", () => {22    expect(cn("px-2", "py-1")).toBe("px-2 py-1");23  });2425  it("handles conditional classes", () => {26    const isHidden = false;27    expect(cn("base", isHidden && "hidden", "extra")).toBe("base extra");28  });2930  it("deduplicates tailwind conflicts", () => {31    expect(cn("px-2", "px-4")).toBe("px-4");32  });3334  it("handles empty inputs", () => {35    expect(cn()).toBe("");36  });3738  it("handles undefined and null", () => {39    expect(cn("base", undefined, null)).toBe("base");40  });41});42