X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fcli%2Fupdate-host.ts;h=d3a1520cffcb21adccb866804b54f6305ae14331;hb=078f17e6d90376050f43ce639e88e11869b49ee7;hp=09a3dd1e7a181c47d622e3da780ff405843628ff;hpb=a54618880c394ad7571f3f3222dc96ec2dd10d9a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/cli/update-host.ts b/server/tests/cli/update-host.ts index 09a3dd1e7..d3a1520cf 100644 --- a/server/tests/cli/update-host.ts +++ b/server/tests/cli/update-host.ts @@ -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) })