aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/moderation
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-07-27 11:40:30 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-07-31 11:35:19 +0200
commit94148c9028829b5576a5dcbfba2c7fb9cf6443d3 (patch)
tree2774f272329111abd03e8441ff936da11fb1a3f3 /server/tests/api/moderation
parent441e453ae53e491b09c9b09b00b041788176ce64 (diff)
downloadPeerTube-94148c9028829b5576a5dcbfba2c7fb9cf6443d3.tar.gz
PeerTube-94148c9028829b5576a5dcbfba2c7fb9cf6443d3.tar.zst
PeerTube-94148c9028829b5576a5dcbfba2c7fb9cf6443d3.zip
Add abuse messages management in my account
Diffstat (limited to 'server/tests/api/moderation')
-rw-r--r--server/tests/api/moderation/abuses.ts19
1 files changed, 14 insertions, 5 deletions
diff --git a/server/tests/api/moderation/abuses.ts b/server/tests/api/moderation/abuses.ts
index 601125fdf..fb765e7e3 100644
--- a/server/tests/api/moderation/abuses.ts
+++ b/server/tests/api/moderation/abuses.ts
@@ -2,12 +2,23 @@
2 2
3import 'mocha' 3import 'mocha'
4import * as chai from 'chai' 4import * as chai from 'chai'
5import { AbuseFilter, AbusePredefinedReasonsString, AbuseState, Account, AdminAbuse, UserAbuse, VideoComment, AbuseMessage } from '@shared/models'
6import { 5import {
6 AbuseFilter,
7 AbuseMessage,
8 AbusePredefinedReasonsString,
9 AbuseState,
10 Account,
11 AdminAbuse,
12 UserAbuse,
13 VideoComment
14} from '@shared/models'
15import {
16 addAbuseMessage,
7 addVideoCommentThread, 17 addVideoCommentThread,
8 cleanupTests, 18 cleanupTests,
9 createUser, 19 createUser,
10 deleteAbuse, 20 deleteAbuse,
21 deleteAbuseMessage,
11 deleteVideoComment, 22 deleteVideoComment,
12 flushAndRunMultipleServers, 23 flushAndRunMultipleServers,
13 generateUserAccessToken, 24 generateUserAccessToken,
@@ -18,6 +29,7 @@ import {
18 getVideoIdFromUUID, 29 getVideoIdFromUUID,
19 getVideosList, 30 getVideosList,
20 immutableAssign, 31 immutableAssign,
32 listAbuseMessages,
21 removeUser, 33 removeUser,
22 removeVideo, 34 removeVideo,
23 reportAbuse, 35 reportAbuse,
@@ -26,10 +38,7 @@ import {
26 updateAbuse, 38 updateAbuse,
27 uploadVideo, 39 uploadVideo,
28 uploadVideoAndGetId, 40 uploadVideoAndGetId,
29 userLogin, 41 userLogin
30 addAbuseMessage,
31 listAbuseMessages,
32 deleteAbuseMessage
33} from '../../../../shared/extra-utils/index' 42} from '../../../../shared/extra-utils/index'
34import { doubleFollow } from '../../../../shared/extra-utils/server/follows' 43import { doubleFollow } from '../../../../shared/extra-utils/server/follows'
35import { waitJobs } from '../../../../shared/extra-utils/server/jobs' 44import { waitJobs } from '../../../../shared/extra-utils/server/jobs'