]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/server/email.ts
Introduce accounts command
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / email.ts
index 41071692a5fe7f396de45e36cb202a9fa66a86a0..85844ae9df7c3c7fd2af2c5f76056027a9122af1 100644 (file)
@@ -12,7 +12,6 @@ import {
   createUser,
   flushAndRunServer,
   removeVideoFromBlacklist,
-  reportAbuse,
   resetPassword,
   ServerInfo,
   setAccessTokensToServers,
@@ -190,7 +189,7 @@ describe('Test emails', function () {
       this.timeout(10000)
 
       const reason = 'my super bad reason'
-      await reportAbuse({ url: server.url, token: server.accessToken, videoId, reason })
+      await server.abusesCommand.report({ videoId, reason })
 
       await waitJobs(server)
       expect(emails).to.have.lengthOf(3)