]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/videos/video-comments.ts
Use raw sql for comments
[github/Chocobozzz/PeerTube.git] / server / tests / api / videos / video-comments.ts
index dc47f8a4a41c83b9b3eef8835d8873b5b6aa6f38..5485b72ec4519c2aaf125d8b6ff0a9a41df78584 100644 (file)
@@ -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)
     })
   })