diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-08 13:34:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-08 13:48:58 +0200 |
commit | 99cb53fd5af3a13886e87c6aa224d777acee9fac (patch) | |
tree | 4fc7eebafc1067ed42f23538ec721b2c5ce94ad9 /server/tests/api/videos/video-comments.ts | |
parent | b110820dfca3552f782b66d895637380c9bb69d7 (diff) | |
download | PeerTube-99cb53fd5af3a13886e87c6aa224d777acee9fac.tar.gz PeerTube-99cb53fd5af3a13886e87c6aa224d777acee9fac.tar.zst PeerTube-99cb53fd5af3a13886e87c6aa224d777acee9fac.zip |
Don't count deleted comment for replies
Diffstat (limited to 'server/tests/api/videos/video-comments.ts')
-rw-r--r-- | server/tests/api/videos/video-comments.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 () { | |||
231 | expect(res.body.data[0].isDeleted).to.be.true | 231 | expect(res.body.data[0].isDeleted).to.be.true |
232 | expect(res.body.data[0].deletedAt).to.not.be.null | 232 | expect(res.body.data[0].deletedAt).to.not.be.null |
233 | expect(res.body.data[0].account).to.be.null | 233 | expect(res.body.data[0].account).to.be.null |
234 | expect(res.body.data[0].totalReplies).to.equal(3) | 234 | expect(res.body.data[0].totalReplies).to.equal(2) |
235 | expect(res.body.data[1].text).to.equal('super thread 2') | 235 | expect(res.body.data[1].text).to.equal('super thread 2') |
236 | expect(res.body.data[1].totalReplies).to.equal(0) | 236 | expect(res.body.data[1].totalReplies).to.equal(0) |
237 | expect(res.body.data[2].text).to.equal('super thread 3') | 237 | expect(res.body.data[2].text).to.equal('super thread 3') |