diff options
Diffstat (limited to 'server/tests/utils')
-rw-r--r-- | server/tests/utils/users/accounts.ts | 4 | ||||
-rw-r--r-- | server/tests/utils/videos/video-channels.ts | 4 | ||||
-rw-r--r-- | server/tests/utils/videos/videos.ts | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/utils/users/accounts.ts b/server/tests/utils/users/accounts.ts index a5c13c319..30b3c54f8 100644 --- a/server/tests/utils/users/accounts.ts +++ b/server/tests/utils/users/accounts.ts | |||
@@ -19,8 +19,8 @@ function getAccountsList (url: string, sort = '-createdAt', statusCodeExpected = | |||
19 | }) | 19 | }) |
20 | } | 20 | } |
21 | 21 | ||
22 | function getAccount (url: string, accountId: number | string, statusCodeExpected = 200) { | 22 | function getAccount (url: string, accountName: string, statusCodeExpected = 200) { |
23 | const path = '/api/v1/accounts/' + accountId | 23 | const path = '/api/v1/accounts/' + accountName |
24 | 24 | ||
25 | return makeGetRequest({ | 25 | return makeGetRequest({ |
26 | url, | 26 | url, |
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) |
diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts index 07c4ffc77..46fa5f79d 100644 --- a/server/tests/utils/videos/videos.ts +++ b/server/tests/utils/videos/videos.ts | |||
@@ -167,8 +167,8 @@ function getMyVideos (url: string, accessToken: string, start: number, count: nu | |||
167 | .expect('Content-Type', /json/) | 167 | .expect('Content-Type', /json/) |
168 | } | 168 | } |
169 | 169 | ||
170 | function getAccountVideos (url: string, accessToken: string, accountId: number | string, start: number, count: number, sort?: string) { | 170 | function getAccountVideos (url: string, accessToken: string, accountName: string, start: number, count: number, sort?: string) { |
171 | const path = '/api/v1/accounts/' + accountId + '/videos' | 171 | const path = '/api/v1/accounts/' + accountName + '/videos' |
172 | 172 | ||
173 | return makeGetRequest({ | 173 | return makeGetRequest({ |
174 | url, | 174 | url, |