aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/utils/videos/videos.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts
index 74bf7354e..a42d0f043 100644
--- a/server/tests/utils/videos/videos.ts
+++ b/server/tests/utils/videos/videos.ts
@@ -248,9 +248,9 @@ function removeVideo (url: string, token: string, id: number | string, expectedS
248} 248}
249 249
250function searchVideo (url: string, search: string) { 250function searchVideo (url: string, search: string) {
251 const path = '/api/v1/videos' 251 const path = '/api/v1/search/videos'
252 const req = request(url) 252 const req = request(url)
253 .get(path + '/search') 253 .get(path)
254 .query({ search }) 254 .query({ search })
255 .set('Accept', 'application/json') 255 .set('Accept', 'application/json')
256 256
@@ -271,10 +271,10 @@ function searchVideoWithToken (url: string, search: string, token: string) {
271} 271}
272 272
273function searchVideoWithPagination (url: string, search: string, start: number, count: number, sort?: string) { 273function searchVideoWithPagination (url: string, search: string, start: number, count: number, sort?: string) {
274 const path = '/api/v1/videos' 274 const path = '/api/v1/search/videos'
275 275
276 const req = request(url) 276 const req = request(url)
277 .get(path + '/search') 277 .get(path)
278 .query({ start }) 278 .query({ start })
279 .query({ search }) 279 .query({ search })
280 .query({ count }) 280 .query({ count })
@@ -287,10 +287,10 @@ function searchVideoWithPagination (url: string, search: string, start: number,
287} 287}
288 288
289function searchVideoWithSort (url: string, search: string, sort: string) { 289function searchVideoWithSort (url: string, search: string, sort: string) {
290 const path = '/api/v1/videos' 290 const path = '/api/v1/search/videos'
291 291
292 return request(url) 292 return request(url)
293 .get(path + '/search') 293 .get(path)
294 .query({ search }) 294 .query({ search })
295 .query({ sort }) 295 .query({ sort })
296 .set('Accept', 'application/json') 296 .set('Accept', 'application/json')