diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-28 16:26:28 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-28 16:30:58 +0100 |
commit | 11ba2ab3f1e3ec29b3765fa0c1ff4ed410c851a9 (patch) | |
tree | 2adb1d78aaf42dfd817d628abff12a618a6ae8f0 /server/tests/utils/videos/video-channels.ts | |
parent | 26d21b7867c225d99e0625af51da4643e351d86d (diff) | |
download | PeerTube-11ba2ab3f1e3ec29b3765fa0c1ff4ed410c851a9.tar.gz PeerTube-11ba2ab3f1e3ec29b3765fa0c1ff4ed410c851a9.tar.zst PeerTube-11ba2ab3f1e3ec29b3765fa0c1ff4ed410c851a9.zip |
Improve check videos parameters tests
Diffstat (limited to 'server/tests/utils/videos/video-channels.ts')
-rw-r--r-- | server/tests/utils/videos/video-channels.ts | 4 |
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 | ||
23 | function getAccountVideoChannelsList (url: string, accountId: number | string) { | 23 | function 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 | ||