diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-15 10:49:46 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-15 14:39:52 +0200 |
commit | 1eddc9a74f9a80fa5d0cb25fceb3fc47a1a3c14a (patch) | |
tree | 91a10310cdf924779527525d39f8eb7e09e4ba49 /server/tests/api/users/users-multiple-servers.ts | |
parent | 31b48aad478506d4214586f02792816efa968e4b (diff) | |
download | PeerTube-1eddc9a74f9a80fa5d0cb25fceb3fc47a1a3c14a.tar.gz PeerTube-1eddc9a74f9a80fa5d0cb25fceb3fc47a1a3c14a.tar.zst PeerTube-1eddc9a74f9a80fa5d0cb25fceb3fc47a1a3c14a.zip |
Add user adminFlags
Diffstat (limited to 'server/tests/api/users/users-multiple-servers.ts')
-rw-r--r-- | server/tests/api/users/users-multiple-servers.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/tests/api/users/users-multiple-servers.ts b/server/tests/api/users/users-multiple-servers.ts index c46c2b7d7..0510b2de9 100644 --- a/server/tests/api/users/users-multiple-servers.ts +++ b/server/tests/api/users/users-multiple-servers.ts | |||
@@ -57,7 +57,12 @@ describe('Test users with multiple servers', function () { | |||
57 | username: 'user1', | 57 | username: 'user1', |
58 | password: 'password' | 58 | password: 'password' |
59 | } | 59 | } |
60 | const res = await createUser(servers[ 0 ].url, servers[ 0 ].accessToken, user.username, user.password) | 60 | const res = await createUser({ |
61 | url: servers[ 0 ].url, | ||
62 | accessToken: servers[ 0 ].accessToken, | ||
63 | username: user.username, | ||
64 | password: user.password | ||
65 | }) | ||
61 | userId = res.body.user.id | 66 | userId = res.body.user.id |
62 | userAccessToken = await userLogin(servers[ 0 ], user) | 67 | userAccessToken = await userLogin(servers[ 0 ], user) |
63 | } | 68 | } |