import { render, screen } from '@testing-library/react';
import PlatformOverviewSection from './PlatformOverviewSection';

describe('PlatformOverviewSection', () => {
  it('renders platform metrics', () => {
    render(
      <PlatformOverviewSection
        totalOrganizations={10}
        totalSites={20}
        totalResourceFlows={5}
        totalMatches={2}
        t={(k) => k}
      />
    );

    expect(screen.getByText('dashboard.organizations')).toBeInTheDocument();
    expect(screen.getByText('10')).toBeInTheDocument();
    expect(screen.getByText('dashboard.sites')).toBeInTheDocument();
    expect(screen.getByText('20')).toBeInTheDocument();
  });
});
