aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/multiple-servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-08 13:34:40 +0200
committerChocobozzz <me@florianbigard.com>2021-06-08 13:48:58 +0200
commit99cb53fd5af3a13886e87c6aa224d777acee9fac (patch)
tree4fc7eebafc1067ed42f23538ec721b2c5ce94ad9 /server/tests/api/videos/multiple-servers.ts
parentb110820dfca3552f782b66d895637380c9bb69d7 (diff)
downloadPeerTube-99cb53fd5af3a13886e87c6aa224d777acee9fac.tar.gz
PeerTube-99cb53fd5af3a13886e87c6aa224d777acee9fac.tar.zst
PeerTube-99cb53fd5af3a13886e87c6aa224d777acee9fac.zip
Don't count deleted comment for replies
Diffstat (limited to 'server/tests/api/videos/multiple-servers.ts')
-rw-r--r--server/tests/api/videos/multiple-servers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts
index 6aa996038..e80d69cf3 100644
--- a/server/tests/api/videos/multiple-servers.ts
+++ b/server/tests/api/videos/multiple-servers.ts
@@ -934,7 +934,7 @@ describe('Test multiple servers', function () {
934 expect(deletedComment.text).to.equal('') 934 expect(deletedComment.text).to.equal('')
935 expect(deletedComment.inReplyToCommentId).to.be.null 935 expect(deletedComment.inReplyToCommentId).to.be.null
936 expect(deletedComment.account).to.be.null 936 expect(deletedComment.account).to.be.null
937 expect(deletedComment.totalReplies).to.equal(3) 937 expect(deletedComment.totalReplies).to.equal(2)
938 expect(dateIsValid(deletedComment.createdAt as string)).to.be.true 938 expect(dateIsValid(deletedComment.createdAt as string)).to.be.true
939 expect(dateIsValid(deletedComment.updatedAt as string)).to.be.true 939 expect(dateIsValid(deletedComment.updatedAt as string)).to.be.true
940 expect(dateIsValid(deletedComment.deletedAt as string)).to.be.true 940 expect(dateIsValid(deletedComment.deletedAt as string)).to.be.true
@@ -976,7 +976,7 @@ describe('Test multiple servers', function () {
976 expect(comment.createdAt).to.not.be.null 976 expect(comment.createdAt).to.not.be.null
977 expect(comment.deletedAt).to.not.be.null 977 expect(comment.deletedAt).to.not.be.null
978 expect(comment.account).to.be.null 978 expect(comment.account).to.be.null
979 expect(comment.totalReplies).to.equal(3) 979 expect(comment.totalReplies).to.equal(2)
980 } 980 }
981 } 981 }
982 }) 982 })