import * as chai from 'chai'
import { HttpStatusCode } from '@shared/core-utils'
import {
- addVideoCommentThread,
blockUser,
cleanupTests,
closeAllSequelize,
getUserInformation,
getUsersList,
getUsersListPaginationAndSort,
- getVideoChannel,
getVideosList,
killallServers,
login,
})
it('Should have created the channel', async function () {
- const res = await getVideoChannel(server.url, 'my_user_15_channel')
+ const { displayName } = await server.channelsCommand.get({ channelName: 'my_user_15_channel' })
- expect(res.body.displayName).to.equal('my channel rocks')
+ expect(displayName).to.equal('my channel rocks')
})
it('Should remove me', async function () {
it('Should report correct video comments for user', async function () {
const text = 'super comment'
- await addVideoCommentThread(server.url, user17AccessToken, videoId, text)
+ await server.commentsCommand.createThread({ token: user17AccessToken, videoId, text })
const res = await getUserInformation(server.url, server.accessToken, user17Id, true)
const user: User = res.body