aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/video-abuses.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils/video-abuses.ts')
-rw-r--r--server/tests/utils/video-abuses.ts29
1 files changed, 1 insertions, 28 deletions
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) {
23 .expect('Content-Type', /json/) 23 .expect('Content-Type', /json/)
24} 24}
25 25
26function getVideoAbusesListPagination (url: string, token: string, start: number, count: number) {
27 const path = '/api/v1/videos/abuse'
28
29 return request(url)
30 .get(path)
31 .query({ start: start })
32 .query({ count: count })
33 .set('Accept', 'application/json')
34 .set('Authorization', 'Bearer ' + token)
35 .expect(200)
36 .expect('Content-Type', /json/)
37}
38
39function getVideoAbusesListSort (url: string, token: string, sort: string) {
40 const path = '/api/v1/videos/abuse'
41
42 return request(url)
43 .get(path)
44 .query({ sort: sort })
45 .set('Accept', 'application/json')
46 .set('Authorization', 'Bearer ' + token)
47 .expect(200)
48 .expect('Content-Type', /json/)
49}
50
51// --------------------------------------------------------------------------- 26// ---------------------------------------------------------------------------
52 27
53export { 28export {
54 reportVideoAbuse, 29 reportVideoAbuse,
55 getVideoAbusesList, 30 getVideoAbusesList
56 getVideoAbusesListPagination,
57 getVideoAbusesListSort
58} 31}