aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/video-blacklists.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils/video-blacklists.ts')
-rw-r--r--server/tests/utils/video-blacklists.ts17
1 files changed, 0 insertions, 17 deletions
diff --git a/server/tests/utils/video-blacklists.ts b/server/tests/utils/video-blacklists.ts
deleted file mode 100644
index 6812d3ad4..000000000
--- a/server/tests/utils/video-blacklists.ts
+++ /dev/null
@@ -1,17 +0,0 @@
1import * as request from 'supertest'
2
3function addVideoToBlacklist (url: string, token: string, videoId: number, specialStatus = 204) {
4 const path = '/api/v1/videos/' + videoId + '/blacklist'
5
6 return request(url)
7 .post(path)
8 .set('Accept', 'application/json')
9 .set('Authorization', 'Bearer ' + token)
10 .expect(specialStatus)
11}
12
13// ---------------------------------------------------------------------------
14
15export {
16 addVideoToBlacklist
17}