aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/users.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-28 14:29:57 +0100
committerChocobozzz <me@florianbigard.com>2017-12-28 14:29:57 +0100
commiteec63bbc0f4fdb39e56f37127b35c449f90a135f (patch)
tree2403f5efea3e281698ae4a6b550fea9dfc52e390 /server/tests/api/check-params/users.ts
parentc5d31dba56d669c0df0209761c43c5a6ac7cec4a (diff)
downloadPeerTube-eec63bbc0f4fdb39e56f37127b35c449f90a135f.tar.gz
PeerTube-eec63bbc0f4fdb39e56f37127b35c449f90a135f.tar.zst
PeerTube-eec63bbc0f4fdb39e56f37127b35c449f90a135f.zip
Improve check follow params tests
Diffstat (limited to 'server/tests/api/check-params/users.ts')
-rw-r--r--server/tests/api/check-params/users.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts
index 72488e5c4..b566a2f1e 100644
--- a/server/tests/api/check-params/users.ts
+++ b/server/tests/api/check-params/users.ts
@@ -11,13 +11,13 @@ import {
11 getVideosList, 11 getVideosList,
12 makePutBodyRequest, 12 makePutBodyRequest,
13 createUser, 13 createUser,
14 loginAndGetAccessToken, 14 serverLogin,
15 getUsersList, 15 getUsersList,
16 registerUser, 16 registerUser,
17 setAccessTokensToServers, 17 setAccessTokensToServers,
18 killallServers, 18 killallServers,
19 makePostBodyRequest, 19 makePostBodyRequest,
20 getUserAccessToken 20 userLogin
21} from '../../utils' 21} from '../../utils'
22import { UserRole } from '../../../../shared' 22import { UserRole } from '../../../../shared'
23 23
@@ -58,7 +58,7 @@ describe('Test users API validators', function () {
58 username: 'user1', 58 username: 'user1',
59 password: 'my super password' 59 password: 'my super password'
60 } 60 }
61 userAccessToken = await getUserAccessToken(server, user) 61 userAccessToken = await userLogin(server, user)
62 }) 62 })
63 63
64 describe('When listing users', function () { 64 describe('When listing users', function () {
@@ -304,7 +304,7 @@ describe('Test users API validators', function () {
304 password: 'my super password' 304 password: 'my super password'
305 } 305 }
306 306
307 userAccessToken = await loginAndGetAccessToken(server) 307 userAccessToken = await serverLogin(server)
308 const fields = { 308 const fields = {
309 username: 'user3', 309 username: 'user3',
310 email: 'test@example.com', 310 email: 'test@example.com',
@@ -675,7 +675,7 @@ describe('Test users API validators', function () {
675 email: 'test3@example.com', 675 email: 'test3@example.com',
676 password: 'my super password' 676 password: 'my super password'
677 } 677 }
678 userAccessToken = await loginAndGetAccessToken(server) 678 userAccessToken = await serverLogin(server)
679 679
680 const videoAttributes = { fixture: 'video_short2.webm' } 680 const videoAttributes = { fixture: 'video_short2.webm' }
681 await uploadVideo(server.url, userAccessToken, videoAttributes) 681 await uploadVideo(server.url, userAccessToken, videoAttributes)