diff options
Diffstat (limited to 'server/tests/utils/videos')
-rw-r--r-- | server/tests/utils/videos/videos.ts | 20 |
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 = { | |||
21 | function getVideoCategories (url: string) { | 21 | function 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 | ||
27 | function getVideoLicences (url: string) { | 30 | function 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 | ||
33 | function getVideoLanguages (url: string) { | 39 | function 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 | ||
39 | function getVideoPrivacies (url: string) { | 48 | function 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 | ||
45 | function getVideo (url: string, id: number | string, expectedStatus = 200) { | 57 | function getVideo (url: string, id: number | string, expectedStatus = 200) { |