import { describe, it, expect } from 'vitest'
import { alertTypeLabel, bundleTriggerLabel } from '@/api/normalize'

describe('AlertLabels', () => {
  it('sofaSepsisLabel', () => {
    expect(alertTypeLabel('SOFA_SEPSIS')).toBe('Sepsis Alert (SOFA)')
  })

  it('legacySepsisLabel', () => {
    expect(alertTypeLabel('SEPSIS_WARNING')).toBe('Sepsis Warning (SIRS — Legacy)')
  })

  it('qsofaScreenLabel', () => {
    expect(alertTypeLabel('QSOFA_SCREEN')).toBe('qSOFA Screen')
  })

  it('gcsCriticalLabel', () => {
    expect(alertTypeLabel('GCS_CRITICAL')).toBe('GCS Critical (≤ 8)')
  })

  it('bundleTriggerSofa', () => {
    expect(bundleTriggerLabel('SOFA_SEPSIS')).toBe('SOFA delta ≥ 2')
  })

  it('bundleTriggerLegacy', () => {
    expect(bundleTriggerLabel('SEPSIS_WARNING')).toBe('SIRS criteria (Legacy)')
  })
})