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 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests/api/moderation') 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 -- cgit v1.2.3