diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-27 11:40:30 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-31 11:35:19 +0200 |
commit | 94148c9028829b5576a5dcbfba2c7fb9cf6443d3 (patch) | |
tree | 2774f272329111abd03e8441ff936da11fb1a3f3 /server/tests/api/moderation/abuses.ts | |
parent | 441e453ae53e491b09c9b09b00b041788176ce64 (diff) | |
download | PeerTube-94148c9028829b5576a5dcbfba2c7fb9cf6443d3.tar.gz PeerTube-94148c9028829b5576a5dcbfba2c7fb9cf6443d3.tar.zst PeerTube-94148c9028829b5576a5dcbfba2c7fb9cf6443d3.zip |
Add abuse messages management in my account
Diffstat (limited to 'server/tests/api/moderation/abuses.ts')
-rw-r--r-- | server/tests/api/moderation/abuses.ts | 19 |
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 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { AbuseFilter, AbusePredefinedReasonsString, AbuseState, Account, AdminAbuse, UserAbuse, VideoComment, AbuseMessage } from '@shared/models' | ||
6 | import { | 5 | import { |
6 | AbuseFilter, | ||
7 | AbuseMessage, | ||
8 | AbusePredefinedReasonsString, | ||
9 | AbuseState, | ||
10 | Account, | ||
11 | AdminAbuse, | ||
12 | UserAbuse, | ||
13 | VideoComment | ||
14 | } from '@shared/models' | ||
15 | import { | ||
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' |
34 | import { doubleFollow } from '../../../../shared/extra-utils/server/follows' | 43 | import { doubleFollow } from '../../../../shared/extra-utils/server/follows' |
35 | import { waitJobs } from '../../../../shared/extra-utils/server/jobs' | 44 | import { waitJobs } from '../../../../shared/extra-utils/server/jobs' |