From 99cb53fd5af3a13886e87c6aa224d777acee9fac Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 8 Jun 2021 13:34:40 +0200 Subject: Don't count deleted comment for replies --- server/tests/api/videos/video-comments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/tests/api/videos/video-comments.ts') diff --git a/server/tests/api/videos/video-comments.ts b/server/tests/api/videos/video-comments.ts index a5ff3a39d..b6b002307 100644 --- a/server/tests/api/videos/video-comments.ts +++ b/server/tests/api/videos/video-comments.ts @@ -231,7 +231,7 @@ describe('Test video comments', function () { expect(res.body.data[0].isDeleted).to.be.true expect(res.body.data[0].deletedAt).to.not.be.null expect(res.body.data[0].account).to.be.null - expect(res.body.data[0].totalReplies).to.equal(3) + expect(res.body.data[0].totalReplies).to.equal(2) expect(res.body.data[1].text).to.equal('super thread 2') expect(res.body.data[1].totalReplies).to.equal(0) expect(res.body.data[2].text).to.equal('super thread 3') -- cgit v1.2.3