diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-09 17:18:46 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-11 18:15:27 +0100 |
| commit | f699802b837d7d9fcf150ff2bf00cd3c5475c87a (patch) | |
| tree | 6c96a140193e7386b454b6d444058a99a0e07454 /src/components/templates/page/page-layout.test.tsx | |
| parent | bd9c9ae7e2ae973969569dd434836de9f38b07d4 (diff) | |
refactor(components): rewrite CommentsList component
* use ApprovedCommentProps to make CommentData type
* add the author name of the parent on reply form heading
* add tests
Diffstat (limited to 'src/components/templates/page/page-layout.test.tsx')
| -rw-r--r-- | src/components/templates/page/page-layout.test.tsx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/components/templates/page/page-layout.test.tsx b/src/components/templates/page/page-layout.test.tsx index 394f995..c7d7a65 100644 --- a/src/components/templates/page/page-layout.test.tsx +++ b/src/components/templates/page/page-layout.test.tsx @@ -1,7 +1,6 @@ import { describe, expect, it } from '@jest/globals'; import type { BreadcrumbList } from 'schema-dts'; import { render, screen as rtlScreen } from '../../../../tests/utils'; -import { comments } from '../../organisms/layout/comments-list.fixture'; import { PageLayout } from './page-layout'; const title = 'Incidunt ad earum'; @@ -94,7 +93,15 @@ describe('PageLayout', () => { breadcrumbSchema={breadcrumbSchema} title={title} allowComments={true} - comments={comments} + comments={[ + { + author: { name: 'Burley40' }, + content: 'Veritatis praesentium non autem ut.', + id: 1, + isApproved: true, + publicationDate: '2023-11-02', + }, + ]} > {children} </PageLayout> |
