diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-20 12:27:46 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-20 19:32:09 +0100 |
| commit | 70b4f633a6fbedb58c8b9134ac64ede854d489de (patch) | |
| tree | c757bb12ad9a588e23b25cdb8b46710ac14dbcb1 /src/components/molecules/layout/page-header.test.tsx | |
| parent | 9a481f066e1427d53a06cf7aeec525a745abf03f (diff) | |
refactor(components): replace PageLayout template with Page
* split pages in smaller components (it is both easier to maintain and
more readable, we avoid the use of fragments in pages directory)
* extract breadcrumbs from article tag (the navigation is not related
to the page contents)
* remove useReadingTime hook
* remove layout options except `isHome`
Diffstat (limited to 'src/components/molecules/layout/page-header.test.tsx')
| -rw-r--r-- | src/components/molecules/layout/page-header.test.tsx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/components/molecules/layout/page-header.test.tsx b/src/components/molecules/layout/page-header.test.tsx deleted file mode 100644 index 82aa7e1..0000000 --- a/src/components/molecules/layout/page-header.test.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { describe, expect, it } from '@jest/globals'; -import { render, screen as rtlScreen } from '../../../../tests/utils'; -import { PageHeader } from './page-header'; - -const title = 'Non nemo amet'; -const intro = - 'Suscipit omnis minima doloribus commodi. Laudantium similique ut enim voluptatem soluta maxime autem et.'; - -describe('PageHeader', () => { - it('renders a title', () => { - render(<PageHeader title={title} intro={intro} />); - expect(rtlScreen.getByRole('heading', { level: 1 })).toHaveTextContent( - title - ); - }); - - it('renders an introduction', () => { - render(<PageHeader title={title} intro={intro} />); - expect(rtlScreen.getByText(intro)).toBeInTheDocument(); - }); -}); |
