/**
 * (callback status tuple and derived literal type).
 */
import { CALLBACK_STATUS } from '@/constants/callback'

describe('[constants/callback]', () => {
  it('CALLBACK_STATUS lists ACTIVE and EXPIRED', () => {
    expect(CALLBACK_STATUS).toEqual(['ACTIVE', 'EXPIRED'])
  })

  it('CallbackStatus type parameter matches tuple members', () => {
    type CallbackStatus = (typeof CALLBACK_STATUS)[number]

    const active: CallbackStatus = 'ACTIVE'
    const expired: CallbackStatus = 'EXPIRED'

    expect(active).toBe('ACTIVE')
    expect(expired).toBe('EXPIRED')
  })
})
