aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-08 16:19:09 +0200
committerChocobozzz <me@florianbigard.com>2021-06-08 16:22:23 +0200
commit9de33c6bd9580ab43cc7bc089c54b2fe2bdfd72d (patch)
tree795dd6b9fc53f8d50a212f1a052cca5719bf14a7 /server/tests
parent7ffa92d6e4e49fc81fc40489302c46ac84f94b92 (diff)
downloadPeerTube-9de33c6bd9580ab43cc7bc089c54b2fe2bdfd72d.tar.gz
PeerTube-9de33c6bd9580ab43cc7bc089c54b2fe2bdfd72d.tar.zst
PeerTube-9de33c6bd9580ab43cc7bc089c54b2fe2bdfd72d.zip
Add logs for refresh functions
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)