diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-23 14:07:02 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-23 16:00:13 +0200 |
| commit | 34e216546151eaf8a0a3cbb0bc8b65dae4c63bf2 (patch) | |
| tree | bff34f8a1dc65f0559ddf851433f242edb092824 /src/components/templates/page/page-layout.test.tsx | |
| parent | 0f8f963ba3eccd7fd94785bf7fb216b6287cec57 (diff) | |
refactor: reduce the number of data transformation
Diffstat (limited to 'src/components/templates/page/page-layout.test.tsx')
| -rw-r--r-- | src/components/templates/page/page-layout.test.tsx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/components/templates/page/page-layout.test.tsx b/src/components/templates/page/page-layout.test.tsx index a0c8923..f2d07d7 100644 --- a/src/components/templates/page/page-layout.test.tsx +++ b/src/components/templates/page/page-layout.test.tsx @@ -1,3 +1,4 @@ +import { comments } from '@components/organisms/layout/comments-list.fixture'; import { render, screen } from '@test-utils'; import { BreadcrumbList } from 'schema-dts'; import PageLayout from './page-layout'; @@ -88,18 +89,6 @@ describe('PageLayout', () => { }); it('renders the comments list', () => { - const comments = [ - { - author: { - avatar: 'http://placeimg.com/640/480', - name: 'Author 1', - }, - content: - 'Voluptas ducimus inventore. Libero ut et doloribus. Earum nostrum ab. Aliquam rem dolores omnis voluptate. Sunt aut ut et.', - id: 1, - publication: '2021-04-03 18:04:11', - }, - ]; render( <PageLayout breadcrumb={breadcrumb} |
