From d4f1e94c89336255537b0b82913591f00e716201 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 23 Nov 2017 18:04:48 +0100 Subject: Misc cleanup --- server/tests/utils/video-abuses.ts | 29 +---------------------------- server/tests/utils/videos.ts | 14 -------------- 2 files changed, 1 insertion(+), 42 deletions(-) (limited to 'server/tests') diff --git a/server/tests/utils/video-abuses.ts b/server/tests/utils/video-abuses.ts index f7ee958d7..f00809234 100644 --- a/server/tests/utils/video-abuses.ts +++ b/server/tests/utils/video-abuses.ts @@ -23,36 +23,9 @@ function getVideoAbusesList (url: string, token: string) { .expect('Content-Type', /json/) } -function getVideoAbusesListPagination (url: string, token: string, start: number, count: number) { - const path = '/api/v1/videos/abuse' - - return request(url) - .get(path) - .query({ start: start }) - .query({ count: count }) - .set('Accept', 'application/json') - .set('Authorization', 'Bearer ' + token) - .expect(200) - .expect('Content-Type', /json/) -} - -function getVideoAbusesListSort (url: string, token: string, sort: string) { - const path = '/api/v1/videos/abuse' - - return request(url) - .get(path) - .query({ sort: sort }) - .set('Accept', 'application/json') - .set('Authorization', 'Bearer ' + token) - .expect(200) - .expect('Content-Type', /json/) -} - // --------------------------------------------------------------------------- export { reportVideoAbuse, - getVideoAbusesList, - getVideoAbusesListPagination, - getVideoAbusesListSort + getVideoAbusesList } 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) { return makeGetRequest(url, path) } -function getAllVideosListBy (url: string) { - const path = '/api/v1/videos' - - return request(url) - .get(path) - .query({ sort: 'createdAt' }) - .query({ start: 0 }) - .query({ count: 10000 }) - .set('Accept', 'application/json') - .expect(200) - .expect('Content-Type', /json/) -} - function getVideo (url: string, id: number | string, expectedStatus = 200) { const path = '/api/v1/videos/' + id @@ -312,7 +299,6 @@ export { getVideoLicences, getVideoPrivacies, getVideoLanguages, - getAllVideosListBy, getMyVideos, getVideo, getVideoWithToken, -- cgit v1.2.3