aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/jobs.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-13 11:05:15 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit41d1d075011174e73dccb74006181a92a618d7b4 (patch)
tree4dc1af0e266977f062cf9716837d04de1cdd628d /server/tests/api/check-params/jobs.ts
parent6c5065a011b099618681a37bd77eaa7bd3db752e (diff)
downloadPeerTube-41d1d075011174e73dccb74006181a92a618d7b4.tar.gz
PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.tar.zst
PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.zip
Introduce login command
Diffstat (limited to 'server/tests/api/check-params/jobs.ts')
-rw-r--r--server/tests/api/check-params/jobs.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/check-params/jobs.ts b/server/tests/api/check-params/jobs.ts
index 3c1d2049b..cbe6a28b8 100644
--- a/server/tests/api/check-params/jobs.ts
+++ b/server/tests/api/check-params/jobs.ts
@@ -7,8 +7,7 @@ import {
7 createUser, 7 createUser,
8 flushAndRunServer, 8 flushAndRunServer,
9 ServerInfo, 9 ServerInfo,
10 setAccessTokensToServers, 10 setAccessTokensToServers
11 userLogin
12} from '../../../../shared/extra-utils' 11} from '../../../../shared/extra-utils'
13import { 12import {
14 checkBadCountPagination, 13 checkBadCountPagination,
@@ -37,7 +36,7 @@ describe('Test jobs API validators', function () {
37 password: 'my super password' 36 password: 'my super password'
38 } 37 }
39 await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password }) 38 await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password })
40 userAccessToken = await userLogin(server, user) 39 userAccessToken = await server.loginCommand.getAccessToken(user)
41 }) 40 })
42 41
43 describe('When listing jobs', function () { 42 describe('When listing jobs', function () {