diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-16 12:46:38 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-16 12:46:38 +0200 |
| commit | 2155550fa36a3bc3c8f66e0926530123b4018cd4 (patch) | |
| tree | 1b7472d7ceeb9c95b2c6de6440b48b94405e155e /src/components/templates/sectioned/sectioned-layout.test.tsx | |
| parent | 8a55aa83bd4b64d1d989cb49b7d9c3fdc1cc6ea5 (diff) | |
refactor: use custom hook for breadcrumb items and schema
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 ); |
