import { describe, it, expect } from 'vitest';
import { render, screen } from '@testing-library/react';
import StatusBadge from './StatusBadge';

describe('StatusBadge', () => {
  it.each([
    ['OPEN', 'Open'],
    ['IN_PROGRESS', 'In Progress'],
    ['RESOLVED', 'Resolved'],
    ['CLOSED', 'Closed'],
  ] as const)('renders %s as "%s"', (status, label) => {
    render(<StatusBadge status={status} />);
    expect(screen.getByText(label)).toBeInTheDocument();
  });
});
