From 4f1181581e177dd80a76165a0f930ef4577f9c6a Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Wed, 22 Nov 2023 19:07:25 +0100
Subject: refactor(components): integrate sectioned page template into Page

* replace Section component by a generic one (other components should
be able to use it)
* add a PageSection component
* add `hasSections` prop to Page component
* remove sectioned-page template
---
 .../templates/sectioned/sectioned-layout.test.tsx   | 21 ---------------------
 1 file changed, 21 deletions(-)
 delete mode 100644 src/components/templates/sectioned/sectioned-layout.test.tsx

(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
deleted file mode 100644
index 372b0fb..0000000
--- a/src/components/templates/sectioned/sectioned-layout.test.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-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);
-  });
-});
-- 
cgit v1.2.3

