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/blocklist.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/blocklist.ts')
-rw-r--r-- | server/tests/api/users/blocklist.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/users/blocklist.ts b/server/tests/api/users/blocklist.ts index 4bca27a94..638a443ba 100644 --- a/server/tests/api/users/blocklist.ts +++ b/server/tests/api/users/blocklist.ts | |||
@@ -86,7 +86,7 @@ describe('Test blocklist', function () { | |||
86 | 86 | ||
87 | { | 87 | { |
88 | const user = { username: 'user1', password: 'password' } | 88 | const user = { username: 'user1', password: 'password' } |
89 | await createUser(servers[0].url, servers[0].accessToken, user.username, user.password) | 89 | await createUser({ url: servers[ 0 ].url, accessToken: servers[ 0 ].accessToken, username: user.username, password: user.password }) |
90 | 90 | ||
91 | userToken1 = await userLogin(servers[0], user) | 91 | userToken1 = await userLogin(servers[0], user) |
92 | await uploadVideo(servers[0].url, userToken1, { name: 'video user 1' }) | 92 | await uploadVideo(servers[0].url, userToken1, { name: 'video user 1' }) |
@@ -94,14 +94,14 @@ describe('Test blocklist', function () { | |||
94 | 94 | ||
95 | { | 95 | { |
96 | const user = { username: 'moderator', password: 'password' } | 96 | const user = { username: 'moderator', password: 'password' } |
97 | await createUser(servers[0].url, servers[0].accessToken, user.username, user.password) | 97 | await createUser({ url: servers[ 0 ].url, accessToken: servers[ 0 ].accessToken, username: user.username, password: user.password }) |
98 | 98 | ||
99 | userModeratorToken = await userLogin(servers[0], user) | 99 | userModeratorToken = await userLogin(servers[0], user) |
100 | } | 100 | } |
101 | 101 | ||
102 | { | 102 | { |
103 | const user = { username: 'user2', password: 'password' } | 103 | const user = { username: 'user2', password: 'password' } |
104 | await createUser(servers[1].url, servers[1].accessToken, user.username, user.password) | 104 | await createUser({ url: servers[ 1 ].url, accessToken: servers[ 1 ].accessToken, username: user.username, password: user.password }) |
105 | 105 | ||
106 | userToken2 = await userLogin(servers[1], user) | 106 | userToken2 = await userLogin(servers[1], user) |
107 | await uploadVideo(servers[1].url, userToken2, { name: 'video user 2' }) | 107 | await uploadVideo(servers[1].url, userToken2, { name: 'video user 2' }) |