blob: 372b0fb7d41ef8f48ddea97c8a59c6fda9da3d00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import { describe, expect, it } from '@jest/globals';
import type { BreadcrumbList } from 'schema-dts';
import { render, screen as rtlScreen } from '../../../../tests/utils';
import { SectionedLayout } from './sectioned-layout';
import { sections } from './sectioned-layout.fixtures';
const breadcrumbSchema: BreadcrumbList['itemListElement'][] = [];
describe('SectionedLayout', () => {
it('renders the correct number of section', () => {
render(
<SectionedLayout
breadcrumbSchema={breadcrumbSchema}
sections={sections}
/>
);
expect(
rtlScreen.getAllByRole('heading', { name: /^Section/ })
).toHaveLength(sections.length);
});
});
|