diff options
Diffstat (limited to 'server/tests/cli/plugins.ts')
-rw-r--r-- | server/tests/cli/plugins.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/cli/plugins.ts b/server/tests/cli/plugins.ts index 5344bfc96..178a7a2d9 100644 --- a/server/tests/cli/plugins.ts +++ b/server/tests/cli/plugins.ts | |||
@@ -27,13 +27,13 @@ describe('Test plugin scripts', function () { | |||
27 | 27 | ||
28 | const packagePath = PluginsCommand.getPluginTestPath() | 28 | const packagePath = PluginsCommand.getPluginTestPath() |
29 | 29 | ||
30 | await server.cliCommand.execWithEnv(`npm run plugin:install -- --plugin-path ${packagePath}`) | 30 | await server.cli.execWithEnv(`npm run plugin:install -- --plugin-path ${packagePath}`) |
31 | }) | 31 | }) |
32 | 32 | ||
33 | it('Should install a theme from stateless CLI', async function () { | 33 | it('Should install a theme from stateless CLI', async function () { |
34 | this.timeout(60000) | 34 | this.timeout(60000) |
35 | 35 | ||
36 | await server.cliCommand.execWithEnv(`npm run plugin:install -- --npm-name peertube-theme-background-red`) | 36 | await server.cli.execWithEnv(`npm run plugin:install -- --npm-name peertube-theme-background-red`) |
37 | }) | 37 | }) |
38 | 38 | ||
39 | it('Should have the theme and the plugin registered when we restart peertube', async function () { | 39 | it('Should have the theme and the plugin registered when we restart peertube', async function () { |
@@ -42,7 +42,7 @@ describe('Test plugin scripts', function () { | |||
42 | await killallServers([ server ]) | 42 | await killallServers([ server ]) |
43 | await reRunServer(server) | 43 | await reRunServer(server) |
44 | 44 | ||
45 | const config = await server.configCommand.getConfig() | 45 | const config = await server.config.getConfig() |
46 | 46 | ||
47 | const plugin = config.plugin.registered | 47 | const plugin = config.plugin.registered |
48 | .find(p => p.name === 'test') | 48 | .find(p => p.name === 'test') |
@@ -56,7 +56,7 @@ describe('Test plugin scripts', function () { | |||
56 | it('Should uninstall a plugin from stateless CLI', async function () { | 56 | it('Should uninstall a plugin from stateless CLI', async function () { |
57 | this.timeout(60000) | 57 | this.timeout(60000) |
58 | 58 | ||
59 | await server.cliCommand.execWithEnv(`npm run plugin:uninstall -- --npm-name peertube-plugin-test`) | 59 | await server.cli.execWithEnv(`npm run plugin:uninstall -- --npm-name peertube-plugin-test`) |
60 | }) | 60 | }) |
61 | 61 | ||
62 | it('Should have removed the plugin on another peertube restart', async function () { | 62 | it('Should have removed the plugin on another peertube restart', async function () { |
@@ -65,7 +65,7 @@ describe('Test plugin scripts', function () { | |||
65 | await killallServers([ server ]) | 65 | await killallServers([ server ]) |
66 | await reRunServer(server) | 66 | await reRunServer(server) |
67 | 67 | ||
68 | const config = await server.configCommand.getConfig() | 68 | const config = await server.config.getConfig() |
69 | 69 | ||
70 | const plugin = config.plugin.registered | 70 | const plugin = config.plugin.registered |
71 | .find(p => p.name === 'test') | 71 | .find(p => p.name === 'test') |