import { describe, test, expect } from 'vitest'

// Teste pure utility-Funktionen
describe('Formatter utilities', () => {
  test('EUR formatting', () => {
    const amount = 1234.56
    const formatted = new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(amount)
    expect(formatted).toContain('1.234,56')
  })

  test('date formatting', () => {
    const d = new Date('2026-03-06T00:00:00Z')
    const iso = d.toISOString().slice(0, 10)
    expect(iso).toBe('2026-03-06')
  })
})
