import { describe, expect, it } from 'vitest'
import en from '../src/i18n/en.json'
import he from '../src/i18n/he.json'

describe('invoice route headings', () => {
  it.each([
    ['invoices.approvals.title', 'Invoice approvals', 'אישורי חשבוניות'],
    ['invoices.drafts.title', 'Drafts', 'טיוטות'],
  ] as const)('translates %s without exposing its key', (key, english, hebrew) => {
    expect(en[key]).toBe(english)
    expect(he[key]).toBe(hebrew)
  })
})
