diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-07 13:38:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | 9fff08cf83f34339df7ed4ac770e1dee536adf9d (patch) | |
tree | 36eac5147a12ae257a3e8aaeffae37c9aed23d0a /server/tests/api/notifications | |
parent | 87e2635a50ac2decb1c330e55c2ff7b6d07a85de (diff) | |
download | PeerTube-9fff08cf83f34339df7ed4ac770e1dee536adf9d.tar.gz PeerTube-9fff08cf83f34339df7ed4ac770e1dee536adf9d.tar.zst PeerTube-9fff08cf83f34339df7ed4ac770e1dee536adf9d.zip |
Introduce accounts command
Diffstat (limited to 'server/tests/api/notifications')
-rw-r--r-- | server/tests/api/notifications/moderation-notifications.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts index 3e66e7517..e90640ad6 100644 --- a/server/tests/api/notifications/moderation-notifications.ts +++ b/server/tests/api/notifications/moderation-notifications.ts | |||
@@ -22,7 +22,6 @@ import { | |||
22 | cleanupTests, | 22 | cleanupTests, |
23 | createUser, | 23 | createUser, |
24 | generateUserAccessToken, | 24 | generateUserAccessToken, |
25 | getAccount, | ||
26 | getVideoCommentThreads, | 25 | getVideoCommentThreads, |
27 | getVideoIdFromUUID, | 26 | getVideoIdFromUUID, |
28 | immutableAssign, | 27 | immutableAssign, |
@@ -157,8 +156,8 @@ describe('Test moderation notifications', function () { | |||
157 | 156 | ||
158 | await waitJobs(servers) | 157 | await waitJobs(servers) |
159 | 158 | ||
160 | const resAccount = await getAccount(servers[1].url, username + '@' + servers[0].host) | 159 | const account = await servers[1].accountsCommand.get({ accountName: username + '@' + servers[0].host }) |
161 | await servers[1].abusesCommand.report({ accountId: resAccount.body.id, reason: 'super reason' }) | 160 | await servers[1].abusesCommand.report({ accountId: account.id, reason: 'super reason' }) |
162 | 161 | ||
163 | await waitJobs(servers) | 162 | await waitJobs(servers) |
164 | await checkNewAccountAbuseForModerators(baseParams, username, 'presence') | 163 | await checkNewAccountAbuseForModerators(baseParams, username, 'presence') |