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,
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
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)
}
})