X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Ftests%2Futils%2Fvideos%2Fvideo-channels.ts;h=0b4fa89b7eac6a2bf87cf70ed59c0628ad711d06;hb=6b738c7a31591a83fdcd9c78b6b1f98e543c378b;hp=cfc541431d52f788884794de5c977f0d3ec2b4b4;hpb=48dce1c90dff4e90a4bcffefaecf157336cf904b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/utils/videos/video-channels.ts b/server/tests/utils/videos/video-channels.ts index cfc541431..0b4fa89b7 100644 --- a/server/tests/utils/videos/video-channels.ts +++ b/server/tests/utils/videos/video-channels.ts @@ -34,7 +34,7 @@ function getAccountVideoChannelsList (url: string, accountId: number | string, s function addVideoChannel ( url: string, token: string, - accountId: number, + accountId: number | string, videoChannelAttributesArg: VideoChannelAttributes, expectedStatus = 200 ) { @@ -59,8 +59,8 @@ function addVideoChannel ( function updateVideoChannel ( url: string, token: string, - accountId: number, - channelId: number, + accountId: number | string, + channelId: number | string, attributes: VideoChannelAttributes, expectedStatus = 204 ) { @@ -79,7 +79,7 @@ function updateVideoChannel ( .expect(expectedStatus) } -function deleteVideoChannel (url: string, token: string, accountId: number, channelId: number, expectedStatus = 204) { +function deleteVideoChannel (url: string, token: string, accountId: number | string, channelId: number | string, expectedStatus = 204) { const path = '/api/v1/accounts/' + accountId + '/video-channels/' + channelId return request(url) @@ -89,7 +89,7 @@ function deleteVideoChannel (url: string, token: string, accountId: number, chan .expect(expectedStatus) } -function getVideoChannel (url: string, accountId: number, channelId: number) { +function getVideoChannel (url: string, accountId: number | string, channelId: number | string) { const path = '/api/v1/accounts/' + accountId + '/video-channels/' + channelId return request(url)