aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/moderation/blocklist.ts4
-rw-r--r--server/tests/api/server/follows.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/moderation/blocklist.ts b/server/tests/api/moderation/blocklist.ts
index b767d38c7..793abbcb4 100644
--- a/server/tests/api/moderation/blocklist.ts
+++ b/server/tests/api/moderation/blocklist.ts
@@ -215,7 +215,7 @@ describe('Test blocklist', function () {
215 215
216 const threads: VideoComment[] = resThreads.body.data 216 const threads: VideoComment[] = resThreads.body.data
217 expect(threads).to.have.lengthOf(1) 217 expect(threads).to.have.lengthOf(1)
218 expect(threads[0].totalReplies).to.equal(0) 218 expect(threads[0].totalReplies).to.equal(1)
219 219
220 const t = threads.find(t => t.text === 'comment user 1') 220 const t = threads.find(t => t.text === 'comment user 1')
221 expect(t).to.be.undefined 221 expect(t).to.be.undefined
@@ -565,7 +565,7 @@ describe('Test blocklist', function () {
565 threads = threads.filter(t => t.isDeleted === false) 565 threads = threads.filter(t => t.isDeleted === false)
566 566
567 expect(threads).to.have.lengthOf(1) 567 expect(threads).to.have.lengthOf(1)
568 expect(threads[0].totalReplies).to.equal(0) 568 expect(threads[0].totalReplies).to.equal(1)
569 569
570 const t = threads.find(t => t.text === 'comment user 1') 570 const t = threads.find(t => t.text === 'comment user 1')
571 expect(t).to.be.undefined 571 expect(t).to.be.undefined
diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts
index e1c062020..9e5aa00c7 100644
--- a/server/tests/api/server/follows.ts
+++ b/server/tests/api/server/follows.ts
@@ -519,7 +519,7 @@ describe('Test follows', function () {
519 expect(deletedComment.text).to.equal('') 519 expect(deletedComment.text).to.equal('')
520 expect(deletedComment.inReplyToCommentId).to.be.null 520 expect(deletedComment.inReplyToCommentId).to.be.null
521 expect(deletedComment.account).to.be.null 521 expect(deletedComment.account).to.be.null
522 expect(deletedComment.totalReplies).to.equal(3) 522 expect(deletedComment.totalReplies).to.equal(2)
523 expect(dateIsValid(deletedComment.deletedAt as string)).to.be.true 523 expect(dateIsValid(deletedComment.deletedAt as string)).to.be.true
524 524
525 const res2 = await getVideoThreadComments(servers[0].url, video4.id, deletedComment.threadId) 525 const res2 = await getVideoThreadComments(servers[0].url, video4.id, deletedComment.threadId)