import { describe, it, expect } from 'vitest';
import { PurchaseStatus } from './purchase.enums.js';

describe(PurchaseStatus.name, () => {
  it('has exactly 2 values', () => {
    expect(Object.values(PurchaseStatus)).toHaveLength(2);
  });

  it.each([
    ['ORDERED', 'ordered'],
    ['IN_CABINET', 'in_cabinet'],
  ])('%s = %s', (key, value) => {
    expect(PurchaseStatus[key as keyof typeof PurchaseStatus]).toBe(value);
  });
});
