turash/bugulma/frontend/components/dashboard/PlatformOverviewSection.test.tsx
2025-12-15 10:06:41 +01:00

22 lines
669 B
TypeScript

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();
});
});