aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/videos/videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils/videos/videos.ts')
-rw-r--r--server/tests/utils/videos/videos.ts20
1 files changed, 16 insertions, 4 deletions
diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts
index 6de1b8c92..f64ebd2b0 100644
--- a/server/tests/utils/videos/videos.ts
+++ b/server/tests/utils/videos/videos.ts
@@ -21,25 +21,37 @@ type VideoAttributes = {
21function getVideoCategories (url: string) { 21function getVideoCategories (url: string) {
22 const path = '/api/v1/videos/categories' 22 const path = '/api/v1/videos/categories'
23 23
24 return makeGetRequest(url, path) 24 return makeGetRequest({
25 url,
26 path
27 })
25} 28}
26 29
27function getVideoLicences (url: string) { 30function getVideoLicences (url: string) {
28 const path = '/api/v1/videos/licences' 31 const path = '/api/v1/videos/licences'
29 32
30 return makeGetRequest(url, path) 33 return makeGetRequest({
34 url,
35 path
36 })
31} 37}
32 38
33function getVideoLanguages (url: string) { 39function getVideoLanguages (url: string) {
34 const path = '/api/v1/videos/languages' 40 const path = '/api/v1/videos/languages'
35 41
36 return makeGetRequest(url, path) 42 return makeGetRequest({
43 url,
44 path
45 })
37} 46}
38 47
39function getVideoPrivacies (url: string) { 48function getVideoPrivacies (url: string) {
40 const path = '/api/v1/videos/privacies' 49 const path = '/api/v1/videos/privacies'
41 50
42 return makeGetRequest(url, path) 51 return makeGetRequest({
52 url,
53 path
54 })
43} 55}
44 56
45function getVideo (url: string, id: number | string, expectedStatus = 200) { 57function getVideo (url: string, id: number | string, expectedStatus = 200) {