mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
22 lines
669 B
TypeScript
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();
|
|
});
|
|
});
|