diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-28 14:29:57 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-28 14:29:57 +0100 |
commit | eec63bbc0f4fdb39e56f37127b35c449f90a135f (patch) | |
tree | 2403f5efea3e281698ae4a6b550fea9dfc52e390 /server/tests/utils/videos | |
parent | c5d31dba56d669c0df0209761c43c5a6ac7cec4a (diff) | |
download | PeerTube-eec63bbc0f4fdb39e56f37127b35c449f90a135f.tar.gz PeerTube-eec63bbc0f4fdb39e56f37127b35c449f90a135f.tar.zst PeerTube-eec63bbc0f4fdb39e56f37127b35c449f90a135f.zip |
Improve check follow params tests
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) { |