aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/comments-list.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-15 17:45:41 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-15 19:06:42 +0200
commitc95cce04393080a52a54191cff7be8fec68af4b0 (patch)
tree1022bc574c8fc8e657be922b26c1cf16cbfd9071 /src/components/organisms/layout/comments-list.test.tsx
parent235fe67d770f83131c9ec10b99012319440db690 (diff)
chore: add Article pages
Diffstat (limited to 'src/components/organisms/layout/comments-list.test.tsx')
-rw-r--r--src/components/organisms/layout/comments-list.test.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/organisms/layout/comments-list.test.tsx b/src/components/organisms/layout/comments-list.test.tsx
index 542b1df..e135ec9 100644
--- a/src/components/organisms/layout/comments-list.test.tsx
+++ b/src/components/organisms/layout/comments-list.test.tsx
@@ -57,10 +57,14 @@ const comments: Comment[] = [
},
];
+const saveComment = async () => {
+ /** Do nothing. */
+};
+
describe('CommentsList', () => {
it('renders a comments list', () => {
render(
- <CommentsList comments={comments} depth={1} saveComment={() => null} />
+ <CommentsList comments={comments} depth={1} saveComment={saveComment} />
);
});
});