aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/plugins.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/plugins.ts')
-rw-r--r--server/tests/api/check-params/plugins.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/check-params/plugins.ts b/server/tests/api/check-params/plugins.ts
index 8509b8ac5..130cf6869 100644
--- a/server/tests/api/check-params/plugins.ts
+++ b/server/tests/api/check-params/plugins.ts
@@ -13,8 +13,7 @@ import {
13 makePostBodyRequest, 13 makePostBodyRequest,
14 makePutBodyRequest, 14 makePutBodyRequest,
15 ServerInfo, 15 ServerInfo,
16 setAccessTokensToServers, 16 setAccessTokensToServers
17 userLogin
18} from '@shared/extra-utils' 17} from '@shared/extra-utils'
19import { PeerTubePlugin, PluginType } from '@shared/models' 18import { PeerTubePlugin, PluginType } from '@shared/models'
20 19
@@ -45,7 +44,7 @@ describe('Test server plugins API validators', function () {
45 } 44 }
46 45
47 await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password }) 46 await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password })
48 userAccessToken = await userLogin(server, user) 47 userAccessToken = await server.loginCommand.getAccessToken(user)
49 48
50 { 49 {
51 const res = await server.pluginsCommand.install({ npmName: npmPlugin }) 50 const res = await server.pluginsCommand.install({ npmName: npmPlugin })