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/bulk.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/bulk.ts')
-rw-r--r-- | server/tests/api/check-params/bulk.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/check-params/bulk.ts b/server/tests/api/check-params/bulk.ts index 07b920ba7..85520b3bd 100644 --- a/server/tests/api/check-params/bulk.ts +++ b/server/tests/api/check-params/bulk.ts | |||
@@ -6,8 +6,7 @@ import { | |||
6 | createUser, | 6 | createUser, |
7 | flushAndRunServer, | 7 | flushAndRunServer, |
8 | ServerInfo, | 8 | ServerInfo, |
9 | setAccessTokensToServers, | 9 | setAccessTokensToServers |
10 | userLogin | ||
11 | } from '../../../../shared/extra-utils' | 10 | } from '../../../../shared/extra-utils' |
12 | import { makePostBodyRequest } from '../../../../shared/extra-utils/requests/requests' | 11 | import { makePostBodyRequest } from '../../../../shared/extra-utils/requests/requests' |
13 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' | 12 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' |
@@ -27,7 +26,7 @@ describe('Test bulk API validators', function () { | |||
27 | const user = { username: 'user1', password: 'password' } | 26 | const user = { username: 'user1', password: 'password' } |
28 | await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password }) | 27 | await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password }) |
29 | 28 | ||
30 | userAccessToken = await userLogin(server, user) | 29 | userAccessToken = await server.loginCommand.getAccessToken(user) |
31 | }) | 30 | }) |
32 | 31 | ||
33 | describe('When removing comments of', function () { | 32 | describe('When removing comments of', function () { |