/**
 * @ai-summary Snapshot tests for AdminSectionHeader component
 */

import { render } from '@testing-library/react';
import { AdminSectionHeader } from '../../components/AdminSectionHeader';

describe('AdminSectionHeader', () => {
  it('should render with title and stats', () => {
    const { container } = render(
      <AdminSectionHeader
        title="Vehicle Catalog"
        stats={[
          { label: 'Makes', value: 100 },
          { label: 'Models', value: 500 },
          { label: 'Years', value: 20 },
        ]}
      />
    );

    expect(container).toMatchSnapshot();
  });

  it('should render with empty stats', () => {
    const { container } = render(
      <AdminSectionHeader title="Admin Users" stats={[]} />
    );

    expect(container).toMatchSnapshot();
  });

  it('should format large numbers with locale', () => {
    const { container } = render(
      <AdminSectionHeader
        title="Station Management"
        stats={[{ label: 'Total Stations', value: 10000 }]}
      />
    );

    expect(container).toMatchSnapshot();
  });
});
