]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/cli/update-host.ts
Merge branch 'release/v1.2.0'
[github/Chocobozzz/PeerTube.git] / server / tests / cli / update-host.ts
index 968b7bd7f62ae6d6c5a95ad6eb9bd7fec3bccec7..811ea6a9f44f71871cb17fbeb466f535e593144b 100644 (file)
@@ -3,8 +3,8 @@
 import 'mocha'
 import * as chai from 'chai'
 import { VideoDetails } from '../../../shared/models/videos'
-import { waitJobs } from '../utils/server/jobs'
-import { addVideoCommentThread } from '../utils/videos/video-comments'
+import { waitJobs } from '../../../shared/utils/server/jobs'
+import { addVideoCommentThread } from '../../../shared/utils/videos/video-comments'
 import {
   addVideoChannel,
   createUser,
@@ -21,8 +21,8 @@ import {
   ServerInfo,
   setAccessTokensToServers,
   uploadVideo
-} from '../utils'
-import { getAccountsList } from '../utils/users/accounts'
+} from '../../../shared/utils'
+import { getAccountsList } from '../../../shared/utils/users/accounts'
 
 const expect = chai.expect
 
@@ -54,6 +54,7 @@ describe('Test update host scripts', function () {
 
     // Create channel
     const videoChannel = {
+      name: 'second_channel',
       displayName: 'second video channel',
       description: 'super video channel description'
     }
@@ -93,9 +94,9 @@ describe('Test update host scripts', function () {
     expect(res.body.total).to.equal(3)
 
     for (const channel of res.body.data) {
-      const { body } = await makeActivityPubGetRequest(server.url, '/video-channels/' + channel.uuid)
+      const { body } = await makeActivityPubGetRequest(server.url, '/video-channels/' + channel.name)
 
-      expect(body.id).to.equal('http://localhost:9002/video-channels/' + channel.uuid)
+      expect(body.id).to.equal('http://localhost:9002/video-channels/' + channel.name)
     }
   })