X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fvideo-comments.ts;h=5485b72ec4519c2aaf125d8b6ff0a9a41df78584;hb=cde3d90ded5debb24281a444eabb720b721e5600;hp=dc47f8a4a41c83b9b3eef8835d8873b5b6aa6f38;hpb=458685e0d039a0ad3fa4f26d99746f7d6d0b40e9;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/video-comments.ts b/server/tests/api/videos/video-comments.ts index dc47f8a4a..5485b72ec 100644 --- a/server/tests/api/videos/video-comments.ts +++ b/server/tests/api/videos/video-comments.ts @@ -232,7 +232,8 @@ describe('Test video comments', function () { await command.addReply({ videoId, toCommentId: threadId2, text: text3 }) const tree = await command.getThread({ videoId: videoUUID, threadId: threadId2 }) - expect(tree.comment.totalReplies).to.equal(tree.comment.totalRepliesFromVideoAuthor + 1) + expect(tree.comment.totalRepliesFromVideoAuthor).to.equal(1) + expect(tree.comment.totalReplies).to.equal(2) }) })