diff options
Diffstat (limited to 'src/components/templates/sectioned/sectioned-layout.test.tsx')
| -rw-r--r-- | src/components/templates/sectioned/sectioned-layout.test.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/templates/sectioned/sectioned-layout.test.tsx b/src/components/templates/sectioned/sectioned-layout.test.tsx index 334d1cc..9b8bab5 100644 --- a/src/components/templates/sectioned/sectioned-layout.test.tsx +++ b/src/components/templates/sectioned/sectioned-layout.test.tsx @@ -1,6 +1,8 @@ import { render, screen } from '@test-utils'; +import { BreadcrumbList } from 'schema-dts'; import SectionedLayout from './sectioned-layout'; +const breadcrumbSchema: BreadcrumbList['itemListElement'][] = []; const sections = [ { title: 'Section 1', @@ -26,7 +28,12 @@ const sections = [ describe('SectionedLayout', () => { it('renders the correct number of section', () => { - render(<SectionedLayout sections={sections} />); + render( + <SectionedLayout + breadcrumbSchema={breadcrumbSchema} + sections={sections} + /> + ); expect(screen.getAllByRole('heading', { name: /^Section/ })).toHaveLength( sections.length ); |
