aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-19 16:17:54 +0200
committerChocobozzz <me@florianbigard.com>2018-07-24 14:04:05 +0200
commit57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6 (patch)
tree87ebcd623c06445b9b25a237addefc98a2d64afa /server/tests
parent7279b455811f4806dcb74a08d17b837bc22533c1 (diff)
downloadPeerTube-57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6.tar.gz
PeerTube-57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6.tar.zst
PeerTube-57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6.zip
Begin advanced search
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')