]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/server/email.ts
Fix tests
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / email.ts
index 5f97edbc28d2040acf519201a9b0dd9f0c36c522..cd8d703411c21de44bcbbfda5ecec35a91fb573e 100644 (file)
@@ -185,7 +185,7 @@ describe('Test emails', function () {
       this.timeout(10000)
 
       const reason = 'my super bad reason'
-      await server.abuses.report({ videoId, reason })
+      await server.abuses.report({ token: userAccessToken, videoId, reason })
 
       await waitJobs(server)
       expect(emails).to.have.lengthOf(3)