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/check-params/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/check-params/abuses.ts')
-rw-r--r-- | server/tests/api/check-params/abuses.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/tests/api/check-params/abuses.ts b/server/tests/api/check-params/abuses.ts index e158e50dc..14949d301 100644 --- a/server/tests/api/check-params/abuses.ts +++ b/server/tests/api/check-params/abuses.ts | |||
@@ -18,7 +18,6 @@ import { | |||
18 | ServerInfo, | 18 | ServerInfo, |
19 | setAccessTokensToServers, | 19 | setAccessTokensToServers, |
20 | uploadVideo, | 20 | uploadVideo, |
21 | userLogin, | ||
22 | waitJobs | 21 | waitJobs |
23 | } from '@shared/extra-utils' | 22 | } from '@shared/extra-utils' |
24 | import { AbuseCreate, AbuseState } from '@shared/models' | 23 | import { AbuseCreate, AbuseState } from '@shared/models' |
@@ -47,7 +46,7 @@ describe('Test abuses API validators', function () { | |||
47 | const username = 'user1' | 46 | const username = 'user1' |
48 | const password = 'my super password' | 47 | const password = 'my super password' |
49 | await createUser({ url: server.url, accessToken: server.accessToken, username: username, password: password }) | 48 | await createUser({ url: server.url, accessToken: server.accessToken, username: username, password: password }) |
50 | userToken = await userLogin(server, { username, password }) | 49 | userToken = await server.loginCommand.getAccessToken({ username, password }) |
51 | 50 | ||
52 | userToken2 = await generateUserAccessToken(server, 'user_2') | 51 | userToken2 = await generateUserAccessToken(server, 'user_2') |
53 | 52 | ||