aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/comments-list.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-09 17:18:46 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:15:27 +0100
commitf699802b837d7d9fcf150ff2bf00cd3c5475c87a (patch)
tree6c96a140193e7386b454b6d444058a99a0e07454 /src/components/organisms/layout/comments-list.test.tsx
parentbd9c9ae7e2ae973969569dd434836de9f38b07d4 (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/organisms/layout/comments-list.test.tsx')
-rw-r--r--src/components/organisms/layout/comments-list.test.tsx12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/components/organisms/layout/comments-list.test.tsx b/src/components/organisms/layout/comments-list.test.tsx
deleted file mode 100644
index 2a05204..0000000
--- a/src/components/organisms/layout/comments-list.test.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import { describe, it } from '@jest/globals';
-import { render } from '../../../../tests/utils';
-import { CommentsList } from './comments-list';
-import { comments, saveComment } from './comments-list.fixture';
-
-describe('CommentsList', () => {
- it('renders a comments list', () => {
- render(
- <CommentsList comments={comments} depth={1} onSubmit={saveComment} />
- );
- });
-});