diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-13 11:05:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 41d1d075011174e73dccb74006181a92a618d7b4 (patch) | |
tree | 4dc1af0e266977f062cf9716837d04de1cdd628d /server/tests/api/moderation/abuses.ts | |
parent | 6c5065a011b099618681a37bd77eaa7bd3db752e (diff) | |
download | PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.tar.gz PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.tar.zst PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.zip |
Introduce login command
Diffstat (limited to 'server/tests/api/moderation/abuses.ts')
-rw-r--r-- | server/tests/api/moderation/abuses.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/tests/api/moderation/abuses.ts b/server/tests/api/moderation/abuses.ts index e428cf1a8..d7462f38f 100644 --- a/server/tests/api/moderation/abuses.ts +++ b/server/tests/api/moderation/abuses.ts | |||
@@ -17,7 +17,6 @@ import { | |||
17 | setAccessTokensToServers, | 17 | setAccessTokensToServers, |
18 | uploadVideo, | 18 | uploadVideo, |
19 | uploadVideoAndGetId, | 19 | uploadVideoAndGetId, |
20 | userLogin, | ||
21 | waitJobs | 20 | waitJobs |
22 | } from '@shared/extra-utils' | 21 | } from '@shared/extra-utils' |
23 | import { AbuseMessage, AbusePredefinedReasonsString, AbuseState, AdminAbuse, UserAbuse } from '@shared/models' | 22 | import { AbuseMessage, AbusePredefinedReasonsString, AbuseState, AdminAbuse, UserAbuse } from '@shared/models' |
@@ -280,7 +279,7 @@ describe('Test abuses', function () { | |||
280 | // register a second user to have two reporters/reportees | 279 | // register a second user to have two reporters/reportees |
281 | const user = { username: 'user2', password: 'password' } | 280 | const user = { username: 'user2', password: 'password' } |
282 | await createUser({ url: servers[0].url, accessToken: servers[0].accessToken, ...user }) | 281 | await createUser({ url: servers[0].url, accessToken: servers[0].accessToken, ...user }) |
283 | const userAccessToken = await userLogin(servers[0], user) | 282 | const userAccessToken = await servers[0].loginCommand.getAccessToken(user) |
284 | 283 | ||
285 | // upload a third video via this user | 284 | // upload a third video via this user |
286 | const video3Attributes = { | 285 | const video3Attributes = { |