From 9be480add29f72f7626a0e5f20c827a356b904f1 Mon Sep 17 00:00:00 2001 From: Hannes Heine Date: Mon, 3 Aug 2020 15:08:57 +0200 Subject: [PATCH 1/8] Added a deleted comment to the Test case --- webapp/components/CommentList/CommentList.spec.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webapp/components/CommentList/CommentList.spec.js b/webapp/components/CommentList/CommentList.spec.js index 66c16263c6..cd18d4443a 100644 --- a/webapp/components/CommentList/CommentList.spec.js +++ b/webapp/components/CommentList/CommentList.spec.js @@ -28,6 +28,13 @@ describe('CommentList.vue', () => { content: 'this is a comment', author: { id: 'some-user' }, }, + { + id: 'comment135', + contentExcerpt: 'this is a deleted comment', + content: 'this is a deleted comment', + deleted: true, + author: { id: 'some-user' }, + } ], }, } From fe999776c0cc609fee82a7f3953e7ad2a9b95cfa Mon Sep 17 00:00:00 2001 From: Hannes Heine Date: Mon, 3 Aug 2020 15:09:33 +0200 Subject: [PATCH 2/8] Filter out the deleted comments of the comment counter --- webapp/components/CommentList/CommentList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/components/CommentList/CommentList.vue b/webapp/components/CommentList/CommentList.vue index 377380325a..658415b899 100644 --- a/webapp/components/CommentList/CommentList.vue +++ b/webapp/components/CommentList/CommentList.vue @@ -1,7 +1,7 @@