diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-25 09:57:16 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-25 10:41:07 +0200 |
commit | ad9e39fb815d85e5e718c40540fa75471474fa17 (patch) | |
tree | 960accb16bca0fac7694b3f3d5d038534b66c224 /server/tests/utils/videos/video-channels.ts | |
parent | 06be7ed0b27b371465c5d1b7f92b4adfb0b866ea (diff) | |
download | PeerTube-ad9e39fb815d85e5e718c40540fa75471474fa17.tar.gz PeerTube-ad9e39fb815d85e5e718c40540fa75471474fa17.tar.zst PeerTube-ad9e39fb815d85e5e718c40540fa75471474fa17.zip |
Only use account name in routes
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 021c4c420..a064598f4 100644 --- a/server/tests/utils/videos/video-channels.ts +++ b/server/tests/utils/videos/video-channels.ts | |||
@@ -16,8 +16,8 @@ function getVideoChannelsList (url: string, start: number, count: number, sort?: | |||
16 | .expect('Content-Type', /json/) | 16 | .expect('Content-Type', /json/) |
17 | } | 17 | } |
18 | 18 | ||
19 | function getAccountVideoChannelsList (url: string, accountId: number | string, specialStatus = 200) { | 19 | function getAccountVideoChannelsList (url: string, accountName: string, specialStatus = 200) { |
20 | const path = '/api/v1/accounts/' + accountId + '/video-channels' | 20 | const path = '/api/v1/accounts/' + accountName + '/video-channels' |
21 | 21 | ||
22 | return request(url) | 22 | return request(url) |
23 | .get(path) | 23 | .get(path) |