]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/cli/update-host.ts
Introduce comments command
[github/Chocobozzz/PeerTube.git] / server / tests / cli / update-host.ts
index 09a3dd1e7a181c47d622e3da780ff405843628ff..61a6c403aadfcf452e58e0e5c581668641dd4bf1 100644 (file)
@@ -2,7 +2,6 @@
 
 import 'mocha'
 import {
-  addVideoCommentThread,
   cleanupTests,
   createUser,
   flushAndRunServer,
@@ -55,7 +54,7 @@ describe('Test update host scripts', function () {
 
     // Create comments
     const text = 'my super first comment'
-    await addVideoCommentThread(server.url, server.accessToken, video1UUID, text)
+    await server.commentsCommand.createThread({ videoId: video1UUID, text })
 
     await waitJobs(server)
   })