Barazo default frontend
barazo.forum
1import { describe, it, expect } from 'vitest'
2import { cn } from './utils'
3
4describe('cn utility', () => {
5 it('should merge class names correctly', () => {
6 expect(cn('foo', 'bar')).toBe('foo bar')
7 })
8
9 it('should handle conditional classes', () => {
10 expect(cn('foo', false && 'bar', 'baz')).toBe('foo baz')
11 })
12
13 it('should merge tailwind classes with proper precedence', () => {
14 expect(cn('px-2', 'px-4')).toBe('px-4')
15 })
16})