aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-07 11:40:47 +0200
committerChocobozzz <me@florianbigard.com>2022-06-08 13:40:40 +0200
commite435cf44c00aba359bf0f265d06bff4841b3f7fe (patch)
treeebb77489389bdb9c5f3f72284123d8dd777abe91 /server
parent7a4fd56ccd86518a6b14c407fc977c7904337448 (diff)
downloadPeerTube-e435cf44c00aba359bf0f265d06bff4841b3f7fe.tar.gz
PeerTube-e435cf44c00aba359bf0f265d06bff4841b3f7fe.tar.zst
PeerTube-e435cf44c00aba359bf0f265d06bff4841b3f7fe.zip
Fix abuse tests
Diffstat (limited to 'server')
-rw-r--r--server/tests/api/moderation/abuses.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/moderation/abuses.ts b/server/tests/api/moderation/abuses.ts
index 7bf49c7ec..568fbefcf 100644
--- a/server/tests/api/moderation/abuses.ts
+++ b/server/tests/api/moderation/abuses.ts
@@ -168,7 +168,7 @@ describe('Test abuses', function () {
168 expect(abuse2.reporterAccount.name).to.equal('root') 168 expect(abuse2.reporterAccount.name).to.equal('root')
169 expect(abuse2.reporterAccount.host).to.equal(servers[0].host) 169 expect(abuse2.reporterAccount.host).to.equal(servers[0].host)
170 170
171 expect(abuse2.video.id).to.equal(servers[1].store.videoCreated.id) 171 expect(abuse2.video.uuid).to.equal(servers[1].store.videoCreated.uuid)
172 172
173 expect(abuse2.comment).to.be.null 173 expect(abuse2.comment).to.be.null
174 174
@@ -530,7 +530,7 @@ describe('Test abuses', function () {
530 it('Should keep the comment abuse when deleting the comment', async function () { 530 it('Should keep the comment abuse when deleting the comment', async function () {
531 this.timeout(10000) 531 this.timeout(10000)
532 532
533 const commentServer2 = await getComment(servers[0], servers[1].store.videoCreated.id) 533 const commentServer2 = await getComment(servers[0], servers[1].store.videoCreated.uuid)
534 534
535 await servers[0].comments.delete({ videoId: servers[1].store.videoCreated.uuid, commentId: commentServer2.id }) 535 await servers[0].comments.delete({ videoId: servers[1].store.videoCreated.uuid, commentId: commentServer2.id })
536 536