diff options
Diffstat (limited to 'server/tests/api/check-params/plugins.ts')
-rw-r--r-- | server/tests/api/check-params/plugins.ts | 5 |
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 | } |