From 2155550fa36a3bc3c8f66e0926530123b4018cd4 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 16 May 2022 12:46:38 +0200 Subject: refactor: use custom hook for breadcrumb items and schema --- src/components/templates/sectioned/sectioned-layout.test.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/components/templates/sectioned/sectioned-layout.test.tsx') 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(); + render( + + ); expect(screen.getAllByRole('heading', { name: /^Section/ })).toHaveLength( sections.length ); -- cgit v1.2.3