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 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'server/tests/utils/video-abuses.ts') 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 } -- cgit v1.2.3