aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/plugins.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-16 09:04:35 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit89d241a79c262b9775c233b73cff080043ebb5e6 (patch)
treecb3b6cb431d25d891ef4e02f66c61d252d17048f /server/tests/api/check-params/plugins.ts
parentd23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff)
downloadPeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.gz
PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.zst
PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.zip
Shorter server command names
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 }