diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-24 19:41:30 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-26 09:11:38 +0200 |
commit | 5f04dd2f743961e0a06c29531cc3ccc9e4928d56 (patch) | |
tree | a73085d0d83affc2377b78a2c7c25bda08d26388 /server/tests/utils/login.ts | |
parent | 72c7248b6fdcdb2175e726ff51b42e7555f2bd84 (diff) | |
download | PeerTube-5f04dd2f743961e0a06c29531cc3ccc9e4928d56.tar.gz PeerTube-5f04dd2f743961e0a06c29531cc3ccc9e4928d56.tar.zst PeerTube-5f04dd2f743961e0a06c29531cc3ccc9e4928d56.zip |
Add video channel tests
Diffstat (limited to 'server/tests/utils/login.ts')
-rw-r--r-- | server/tests/utils/login.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/utils/login.ts b/server/tests/utils/login.ts index c9d4aed44..22d37c46f 100644 --- a/server/tests/utils/login.ts +++ b/server/tests/utils/login.ts | |||
@@ -32,7 +32,7 @@ async function loginAndGetAccessToken (server: Server) { | |||
32 | return res.body.access_token as string | 32 | return res.body.access_token as string |
33 | } | 33 | } |
34 | 34 | ||
35 | async function getUserAccessToken (server, user) { | 35 | async function getUserAccessToken (server: Server, user: User) { |
36 | const res = await login(server.url, server.client, user, 200) | 36 | const res = await login(server.url, server.client, user, 200) |
37 | 37 | ||
38 | return res.body.access_token as string | 38 | return res.body.access_token as string |