diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-08 16:19:09 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-08 16:22:23 +0200 |
commit | 9de33c6bd9580ab43cc7bc089c54b2fe2bdfd72d (patch) | |
tree | 795dd6b9fc53f8d50a212f1a052cca5719bf14a7 /server/tests/api/moderation | |
parent | 7ffa92d6e4e49fc81fc40489302c46ac84f94b92 (diff) | |
download | PeerTube-9de33c6bd9580ab43cc7bc089c54b2fe2bdfd72d.tar.gz PeerTube-9de33c6bd9580ab43cc7bc089c54b2fe2bdfd72d.tar.zst PeerTube-9de33c6bd9580ab43cc7bc089c54b2fe2bdfd72d.zip |
Add logs for refresh functions
Diffstat (limited to 'server/tests/api/moderation')
-rw-r--r-- | server/tests/api/moderation/blocklist.ts | 4 |
1 files changed, 2 insertions, 2 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 |