mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Introduce plugins command
This commit is contained in:
parent
9c6327f803
commit
ae2abfd3ae
26 changed files with 480 additions and 765 deletions
|
@ -10,7 +10,6 @@ import {
|
|||
createUser,
|
||||
flushAndRunServer,
|
||||
immutableAssign,
|
||||
installPlugin,
|
||||
makeGetRequest,
|
||||
makePostBodyRequest,
|
||||
makePutBodyRequest,
|
||||
|
@ -50,13 +49,13 @@ describe('Test server plugins API validators', function () {
|
|||
userAccessToken = await userLogin(server, user)
|
||||
|
||||
{
|
||||
const res = await installPlugin({ url: server.url, accessToken: server.accessToken, npmName: npmPlugin })
|
||||
const res = await server.pluginsCommand.install({ npmName: npmPlugin })
|
||||
const plugin = res.body as PeerTubePlugin
|
||||
npmVersion = plugin.version
|
||||
}
|
||||
|
||||
{
|
||||
const res = await installPlugin({ url: server.url, accessToken: server.accessToken, npmName: themePlugin })
|
||||
const res = await server.pluginsCommand.install({ npmName: themePlugin })
|
||||
const plugin = res.body as PeerTubePlugin
|
||||
themeVersion = plugin.version
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue