diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-19 16:17:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-24 14:04:05 +0200 |
commit | 57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6 (patch) | |
tree | 87ebcd623c06445b9b25a237addefc98a2d64afa /server/tests/utils/videos | |
parent | 7279b455811f4806dcb74a08d17b837bc22533c1 (diff) | |
download | PeerTube-57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6.tar.gz PeerTube-57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6.tar.zst PeerTube-57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6.zip |
Begin advanced search
Diffstat (limited to 'server/tests/utils/videos')
-rw-r--r-- | server/tests/utils/videos/videos.ts | 12 |
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 | ||
250 | function searchVideo (url: string, search: string) { | 250 | function 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 | ||
273 | function searchVideoWithPagination (url: string, search: string, start: number, count: number, sort?: string) { | 273 | function 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 | ||
289 | function searchVideoWithSort (url: string, search: string, sort: string) { | 289 | function 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') |