diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-23 18:04:48 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:53 +0100 |
commit | d4f1e94c89336255537b0b82913591f00e716201 (patch) | |
tree | c7d18e09a4f53eafc61de8cb0692c020b197512d /server/tests/utils/videos.ts | |
parent | 8d468a16fd33ec2660c3c59b3f7def53eb0cc4a1 (diff) | |
download | PeerTube-d4f1e94c89336255537b0b82913591f00e716201.tar.gz PeerTube-d4f1e94c89336255537b0b82913591f00e716201.tar.zst PeerTube-d4f1e94c89336255537b0b82913591f00e716201.zip |
Misc cleanup
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, |