aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/comments-list.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-07 16:55:58 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:15:27 +0100
commitbd9c9ae7e2ae973969569dd434836de9f38b07d4 (patch)
tree84905097c4f2c2db36794c20910e3893189a65e1 /src/components/organisms/layout/comments-list.test.tsx
parentc9c1c90b30e243563bb4f731da15b3fe657556d2 (diff)
refactor(components): split Comment component into 3 components
* add ApprovedComment, PendingComment and ReplyCommentForm components * let consumer handle reply form visibility * move structured data into article page (each article already has the comments data and already handle json ltd schema so I prefered to move the schema in the final consumer instead of adding a script element foreach comment)
Diffstat (limited to 'src/components/organisms/layout/comments-list.test.tsx')
-rw-r--r--src/components/organisms/layout/comments-list.test.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/organisms/layout/comments-list.test.tsx b/src/components/organisms/layout/comments-list.test.tsx
index d7e170c..2a05204 100644
--- a/src/components/organisms/layout/comments-list.test.tsx
+++ b/src/components/organisms/layout/comments-list.test.tsx
@@ -1,8 +1,7 @@
import { describe, it } from '@jest/globals';
import { render } from '../../../../tests/utils';
-import { saveComment } from './comment.fixture';
import { CommentsList } from './comments-list';
-import { comments } from './comments-list.fixture';
+import { comments, saveComment } from './comments-list.fixture';
describe('CommentsList', () => {
it('renders a comments list', () => {