diff options
Diffstat (limited to 'server/tests/utils/videos.ts')
-rw-r--r-- | server/tests/utils/videos.ts | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/server/tests/utils/videos.ts b/server/tests/utils/videos.ts index d4d5faf0a..dababe924 100644 --- a/server/tests/utils/videos.ts +++ b/server/tests/utils/videos.ts | |||
@@ -46,19 +46,6 @@ function getVideoPrivacies (url: string) { | |||
46 | return makeGetRequest(url, path) | 46 | return makeGetRequest(url, path) |
47 | } | 47 | } |
48 | 48 | ||
49 | function getAllVideosListBy (url: string) { | ||
50 | const path = '/api/v1/videos' | ||
51 | |||
52 | return request(url) | ||
53 | .get(path) | ||
54 | .query({ sort: 'createdAt' }) | ||
55 | .query({ start: 0 }) | ||
56 | .query({ count: 10000 }) | ||
57 | .set('Accept', 'application/json') | ||
58 | .expect(200) | ||
59 | .expect('Content-Type', /json/) | ||
60 | } | ||
61 | |||
62 | function getVideo (url: string, id: number | string, expectedStatus = 200) { | 49 | function getVideo (url: string, id: number | string, expectedStatus = 200) { |
63 | const path = '/api/v1/videos/' + id | 50 | const path = '/api/v1/videos/' + id |
64 | 51 | ||
@@ -312,7 +299,6 @@ export { | |||
312 | getVideoLicences, | 299 | getVideoLicences, |
313 | getVideoPrivacies, | 300 | getVideoPrivacies, |
314 | getVideoLanguages, | 301 | getVideoLanguages, |
315 | getAllVideosListBy, | ||
316 | getMyVideos, | 302 | getMyVideos, |
317 | getVideo, | 303 | getVideo, |
318 | getVideoWithToken, | 304 | getVideoWithToken, |