]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix abuse tests
authorChocobozzz <me@florianbigard.com>
Tue, 7 Jun 2022 09:40:47 +0000 (11:40 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 8 Jun 2022 11:40:40 +0000 (13:40 +0200)
server/tests/api/moderation/abuses.ts

index 7bf49c7ecd855365ce4a69ec2afb9eda8c6e2ac1..568fbefcf06e88c5b608218e0b9ffd0b81c8dfb3 100644 (file)
@@ -168,7 +168,7 @@ describe('Test abuses', function () {
         expect(abuse2.reporterAccount.name).to.equal('root')
         expect(abuse2.reporterAccount.host).to.equal(servers[0].host)
 
-        expect(abuse2.video.id).to.equal(servers[1].store.videoCreated.id)
+        expect(abuse2.video.uuid).to.equal(servers[1].store.videoCreated.uuid)
 
         expect(abuse2.comment).to.be.null
 
@@ -530,7 +530,7 @@ describe('Test abuses', function () {
     it('Should keep the comment abuse when deleting the comment', async function () {
       this.timeout(10000)
 
-      const commentServer2 = await getComment(servers[0], servers[1].store.videoCreated.id)
+      const commentServer2 = await getComment(servers[0], servers[1].store.videoCreated.uuid)
 
       await servers[0].comments.delete({ videoId: servers[1].store.videoCreated.uuid, commentId: commentServer2.id })