/**
 * (share/lib/utils — cn merge and Tailwind conflict resolution).
 */
import { cn } from '@/share/lib/utils'

describe('[share/lib/utils]', () => {
  describe('cn', () => {
    it('concatenates multiple class strings', () => {
      expect(cn('a', 'b')).toBe('a b')
    })

    it('omits falsy values', () => {
      expect(cn('a', false, 'b', undefined, null)).toBe('a b')
    })

    it('resolves conflicting Tailwind utilities (last wins)', () => {
      expect(cn('px-2', 'px-4')).toContain('px-4')
    })
  })
})
