aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/videos/video-channels.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils/videos/video-channels.ts')
-rw-r--r--server/tests/utils/videos/video-channels.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/utils/videos/video-channels.ts b/server/tests/utils/videos/video-channels.ts
index 0fb80d331..062ca8f4d 100644
--- a/server/tests/utils/videos/video-channels.ts
+++ b/server/tests/utils/videos/video-channels.ts
@@ -20,13 +20,13 @@ function getVideoChannelsList (url: string, start: number, count: number, sort?:
20 .expect('Content-Type', /json/) 20 .expect('Content-Type', /json/)
21} 21}
22 22
23function getAccountVideoChannelsList (url: string, accountId: number | string) { 23function getAccountVideoChannelsList (url: string, accountId: number | string, specialStatus = 200) {
24 const path = '/api/v1/videos/accounts/' + accountId + '/channels' 24 const path = '/api/v1/videos/accounts/' + accountId + '/channels'
25 25
26 return request(url) 26 return request(url)
27 .get(path) 27 .get(path)
28 .set('Accept', 'application/json') 28 .set('Accept', 'application/json')
29 .expect(200) 29 .expect(specialStatus)
30 .expect('Content-Type', /json/) 30 .expect('Content-Type', /json/)
31} 31}
32 32