From 8a19bee1a1ee39f973bb37429e4f73c3f2873cdb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Aug 2018 15:45:42 +0200 Subject: Add ability to set a name to a channel --- server/tests/utils/videos/video-channels.ts | 4 ++-- server/tests/utils/videos/videos.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'server/tests/utils') diff --git a/server/tests/utils/videos/video-channels.ts b/server/tests/utils/videos/video-channels.ts index 3ca39469c..1eea22b31 100644 --- a/server/tests/utils/videos/video-channels.ts +++ b/server/tests/utils/videos/video-channels.ts @@ -97,10 +97,10 @@ function updateVideoChannelAvatar (options: { url: string, accessToken: string, fixture: string, - videoChannelId: string | number + videoChannelName: string | number }) { - const path = '/api/v1/video-channels/' + options.videoChannelId + '/avatar/pick' + const path = '/api/v1/video-channels/' + options.videoChannelName + '/avatar/pick' return updateAvatarRequest(Object.assign(options, { path })) } diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts index b280cccda..592248144 100644 --- a/server/tests/utils/videos/videos.ts +++ b/server/tests/utils/videos/videos.ts @@ -199,13 +199,13 @@ function getAccountVideos ( function getVideoChannelVideos ( url: string, accessToken: string, - videoChannelId: number | string, + videoChannelName: string, start: number, count: number, sort?: string, query: { nsfw?: boolean } = {} ) { - const path = '/api/v1/video-channels/' + videoChannelId + '/videos' + const path = '/api/v1/video-channels/' + videoChannelName + '/videos' return makeGetRequest({ url, -- cgit v1.2.3