aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/video-comments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/video-comments.ts')
-rw-r--r--server/tests/api/check-params/video-comments.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/tests/api/check-params/video-comments.ts b/server/tests/api/check-params/video-comments.ts
index 0f8c81392..c21aebaae 100644
--- a/server/tests/api/check-params/video-comments.ts
+++ b/server/tests/api/check-params/video-comments.ts
@@ -15,8 +15,7 @@ import {
15 makePostBodyRequest, 15 makePostBodyRequest,
16 ServerInfo, 16 ServerInfo,
17 setAccessTokensToServers, 17 setAccessTokensToServers,
18 uploadVideo, 18 uploadVideo
19 userLogin
20} from '@shared/extra-utils' 19} from '@shared/extra-utils'
21import { VideoCreateResult } from '@shared/models' 20import { VideoCreateResult } from '@shared/models'
22 21
@@ -55,13 +54,13 @@ describe('Test video comments API validator', function () {
55 { 54 {
56 const user = { username: 'user1', password: 'my super password' } 55 const user = { username: 'user1', password: 'my super password' }
57 await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password }) 56 await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password })
58 userAccessToken = await userLogin(server, user) 57 userAccessToken = await server.loginCommand.getAccessToken(user)
59 } 58 }
60 59
61 { 60 {
62 const user = { username: 'user2', password: 'my super password' } 61 const user = { username: 'user2', password: 'my super password' }
63 await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password }) 62 await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password })
64 userAccessToken2 = await userLogin(server, user) 63 userAccessToken2 = await server.loginCommand.getAccessToken(user)
65 } 64 }
66 }) 65 })
67 66