aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/plugins.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-07 10:33:49 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commitae2abfd3aed3e75d39a316b49b914d187faa7475 (patch)
tree4d5060dc310f3d8cdcd5829779522f49b3d10e71 /server/tests/api/check-params/plugins.ts
parent9c6327f803aaf4200672f1fc40b2f43786daca47 (diff)
downloadPeerTube-ae2abfd3aed3e75d39a316b49b914d187faa7475.tar.gz
PeerTube-ae2abfd3aed3e75d39a316b49b914d187faa7475.tar.zst
PeerTube-ae2abfd3aed3e75d39a316b49b914d187faa7475.zip
Introduce plugins command
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 a833fe6ff..d372221d0 100644
--- a/server/tests/api/check-params/plugins.ts
+++ b/server/tests/api/check-params/plugins.ts
@@ -10,7 +10,6 @@ import {
10 createUser, 10 createUser,
11 flushAndRunServer, 11 flushAndRunServer,
12 immutableAssign, 12 immutableAssign,
13 installPlugin,
14 makeGetRequest, 13 makeGetRequest,
15 makePostBodyRequest, 14 makePostBodyRequest,
16 makePutBodyRequest, 15 makePutBodyRequest,
@@ -50,13 +49,13 @@ describe('Test server plugins API validators', function () {
50 userAccessToken = await userLogin(server, user) 49 userAccessToken = await userLogin(server, user)
51 50
52 { 51 {
53 const res = await installPlugin({ url: server.url, accessToken: server.accessToken, npmName: npmPlugin }) 52 const res = await server.pluginsCommand.install({ npmName: npmPlugin })
54 const plugin = res.body as PeerTubePlugin 53 const plugin = res.body as PeerTubePlugin
55 npmVersion = plugin.version 54 npmVersion = plugin.version
56 } 55 }
57 56
58 { 57 {
59 const res = await installPlugin({ url: server.url, accessToken: server.accessToken, npmName: themePlugin }) 58 const res = await server.pluginsCommand.install({ npmName: themePlugin })
60 const plugin = res.body as PeerTubePlugin 59 const plugin = res.body as PeerTubePlugin
61 themeVersion = plugin.version 60 themeVersion = plugin.version
62 } 61 }