X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Futils%2Fvideo-channels.ts;h=0fb80d3312e1e036f664256b015770f80ff1e5c6;hb=975e6e0e44e2f2b25f804cd48a62e2a8d9e8117a;hp=5b436b1835efe76a4a93da425dd95f7dfae95dc2;hpb=afffe98839db7ccbfa9fb8b7d1413b97900fdc73;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/utils/video-channels.ts b/server/tests/utils/video-channels.ts index 5b436b183..0fb80d331 100644 --- a/server/tests/utils/video-channels.ts +++ b/server/tests/utils/video-channels.ts @@ -20,8 +20,8 @@ function getVideoChannelsList (url: string, start: number, count: number, sort?: .expect('Content-Type', /json/) } -function getAuthorVideoChannelsList (url: string, authorId: number | string) { - const path = '/api/v1/videos/authors/' + authorId + '/channels' +function getAccountVideoChannelsList (url: string, accountId: number | string) { + const path = '/api/v1/videos/accounts/' + accountId + '/channels' return request(url) .get(path) @@ -87,7 +87,7 @@ function getVideoChannel (url: string, channelId: number) { export { getVideoChannelsList, - getAuthorVideoChannelsList, + getAccountVideoChannelsList, addVideoChannel, updateVideoChannel, deleteVideoChannel,