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.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/check-params/plugins.ts b/server/tests/api/check-params/plugins.ts
index 08fb2397f..d4b72c0f4 100644
--- a/server/tests/api/check-params/plugins.ts
+++ b/server/tests/api/check-params/plugins.ts
@@ -42,17 +42,17 @@ describe('Test server plugins API validators', function () {
42 password: 'password' 42 password: 'password'
43 } 43 }
44 44
45 await server.usersCommand.create({ username: user.username, password: user.password }) 45 await server.users.create({ username: user.username, password: user.password })
46 userAccessToken = await server.loginCommand.getAccessToken(user) 46 userAccessToken = await server.login.getAccessToken(user)
47 47
48 { 48 {
49 const res = await server.pluginsCommand.install({ npmName: npmPlugin }) 49 const res = await server.plugins.install({ npmName: npmPlugin })
50 const plugin = res.body as PeerTubePlugin 50 const plugin = res.body as PeerTubePlugin
51 npmVersion = plugin.version 51 npmVersion = plugin.version
52 } 52 }
53 53
54 { 54 {
55 const res = await server.pluginsCommand.install({ npmName: themePlugin }) 55 const res = await server.plugins.install({ npmName: themePlugin })
56 const plugin = res.body as PeerTubePlugin 56 const plugin = res.body as PeerTubePlugin
57 themeVersion = plugin.version 57 themeVersion = plugin.version
58 } 58 }