X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideo-channels.ts;h=2d8efb3202ba49d3c2804507384f0583cb619918;hb=04e0fc488826f505a8de3ce99113f3cb2fcec147;hp=95b202e2f678f8140a07002b4e09056f1e8b56fc;hpb=5f04dd2f743961e0a06c29531cc3ccc9e4928d56;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/video-channels.ts b/server/tests/api/video-channels.ts index 95b202e2f..2d8efb320 100644 --- a/server/tests/api/video-channels.ts +++ b/server/tests/api/video-channels.ts @@ -1,7 +1,5 @@ /* tslint:disable:no-unused-expression */ -import { keyBy } from 'lodash' -import { join } from 'path' import 'mocha' import * as chai from 'chai' const expect = chai.expect @@ -15,7 +13,7 @@ import { getMyUserInformation, getVideoChannelsList, addVideoChannel, - getAuthorVideoChannelsList, + getAccountVideoChannelsList, updateVideoChannel, deleteVideoChannel, getVideoChannel @@ -28,7 +26,7 @@ describe('Test a video channels', function () { let videoChannelId: number before(async function () { - this.timeout(120000) + this.timeout(10000) await flushTests() @@ -66,8 +64,8 @@ describe('Test a video channels', function () { 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')