/* tslint:disable:no-unused-expression */
-import { keyBy } from 'lodash'
-import { join } from 'path'
import 'mocha'
import * as chai from 'chai'
const expect = chai.expect
getMyUserInformation,
getVideoChannelsList,
addVideoChannel,
- getAuthorVideoChannelsList,
+ getAccountVideoChannelsList,
updateVideoChannel,
deleteVideoChannel,
getVideoChannel
let videoChannelId: number
before(async function () {
- this.timeout(120000)
+ this.timeout(10000)
await flushTests()
expect(videoChannels[1].description).to.equal('super video channel description')
})
- it('Should have two video channels when getting author channels', async () => {
- const res = await getAuthorVideoChannelsList(server.url, userInfo.author.uuid)
+ it('Should have two video channels when getting account channels', async () => {
+ const res = await getAccountVideoChannelsList(server.url, userInfo.account.uuid)
expect(res.body.total).to.equal(2)
expect(res.body.data).to.be.an('array')