import { describe, it, expect } from 'vitest';
import { NutritionWarning } from './recipe.enums.js';

describe(NutritionWarning.name, () => {
  it('has expected values', () => {
    expect(NutritionWarning.HIGH_CALORIES).toBe('high_calories');
    expect(NutritionWarning.HIGH_SODIUM).toBe('high_sodium');
    expect(NutritionWarning.HIGH_SUGAR).toBe('high_sugar');
    expect(NutritionWarning.HIGH_SATURATED_FAT).toBe('high_saturated_fat');
    expect(NutritionWarning.LOW_PROTEIN).toBe('low_protein');
    expect(NutritionWarning.LOW_FIBER).toBe('low_fiber');
    expect(NutritionWarning.HIGH_CHOLESTEROL).toBe('high_cholesterol');
  });

  it('has exactly 7 warning types', () => {
    expect(Object.values(NutritionWarning)).toHaveLength(7);
  });
});
