From 9de33c6bd9580ab43cc7bc089c54b2fe2bdfd72d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 8 Jun 2021 16:19:09 +0200 Subject: Add logs for refresh functions --- server/tests/api/moderation/blocklist.ts | 4 ++-- server/tests/api/server/follows.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server/tests/api') diff --git a/server/tests/api/moderation/blocklist.ts b/server/tests/api/moderation/blocklist.ts index b767d38c7..793abbcb4 100644 --- a/server/tests/api/moderation/blocklist.ts +++ b/server/tests/api/moderation/blocklist.ts @@ -215,7 +215,7 @@ describe('Test blocklist', function () { const threads: VideoComment[] = resThreads.body.data expect(threads).to.have.lengthOf(1) - expect(threads[0].totalReplies).to.equal(0) + expect(threads[0].totalReplies).to.equal(1) const t = threads.find(t => t.text === 'comment user 1') expect(t).to.be.undefined @@ -565,7 +565,7 @@ describe('Test blocklist', function () { threads = threads.filter(t => t.isDeleted === false) expect(threads).to.have.lengthOf(1) - expect(threads[0].totalReplies).to.equal(0) + expect(threads[0].totalReplies).to.equal(1) const t = threads.find(t => t.text === 'comment user 1') expect(t).to.be.undefined diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts index e1c062020..9e5aa00c7 100644 --- a/server/tests/api/server/follows.ts +++ b/server/tests/api/server/follows.ts @@ -519,7 +519,7 @@ describe('Test follows', function () { expect(deletedComment.text).to.equal('') expect(deletedComment.inReplyToCommentId).to.be.null expect(deletedComment.account).to.be.null - expect(deletedComment.totalReplies).to.equal(3) + expect(deletedComment.totalReplies).to.equal(2) expect(dateIsValid(deletedComment.deletedAt as string)).to.be.true const res2 = await getVideoThreadComments(servers[0].url, video4.id, deletedComment.threadId) -- cgit v1.2.3