]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/cli/update-host.ts
Fix CLI tools
[github/Chocobozzz/PeerTube.git] / server / tests / cli / update-host.ts
index 09a3dd1e7a181c47d622e3da780ff405843628ff..d3a1520cffcb21adccb866804b54f6305ae14331 100644 (file)
@@ -1,8 +1,8 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
 import 'mocha'
+import { expect } from 'chai'
 import {
-  addVideoCommentThread,
   cleanupTests,
   createUser,
   flushAndRunServer,
@@ -19,8 +19,6 @@ import {
 } from '@shared/extra-utils'
 import { VideoDetails } from '@shared/models'
 
-const expect = chai.expect
-
 describe('Test update host scripts', function () {
   let server: ServerInfo
 
@@ -55,7 +53,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)
   })