diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-22 09:44:08 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-22 10:25:31 +0200 |
commit | ff9d43f62a4f4737c5bfe955883b48c5440f323a (patch) | |
tree | 60593f4b57ec5cd712986a3db370f39b0b7a4cef /server/tests/api | |
parent | 2e401e8575decb1d491d0db48ca1ab1eba5b2a66 (diff) | |
download | PeerTube-ff9d43f62a4f4737c5bfe955883b48c5440f323a.tar.gz PeerTube-ff9d43f62a4f4737c5bfe955883b48c5440f323a.tar.zst PeerTube-ff9d43f62a4f4737c5bfe955883b48c5440f323a.zip |
Refactor video rights checker
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/check-params/videos.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts index 41064d2ff..5ff51d1ff 100644 --- a/server/tests/api/check-params/videos.ts +++ b/server/tests/api/check-params/videos.ts | |||
@@ -39,10 +39,7 @@ describe('Test videos API validator', function () { | |||
39 | 39 | ||
40 | await setAccessTokensToServers([ server ]) | 40 | await setAccessTokensToServers([ server ]) |
41 | 41 | ||
42 | const username = 'user1' | 42 | userAccessToken = await server.users.generateUserAndToken('user1') |
43 | const password = 'my super password' | ||
44 | await server.users.create({ username: username, password: password }) | ||
45 | userAccessToken = await server.login.getAccessToken({ username, password }) | ||
46 | 43 | ||
47 | { | 44 | { |
48 | const body = await server.users.getMyInfo() | 45 | const body = await server.users.getMyInfo() |