aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/plugins.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-19 17:30:41 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit89cd12756035a146bbcc4db78cd3cd64f2f3d88d (patch)
tree896cd9fca1e0baa969b1f7a5b398ec1602761661 /server/tests/cli/plugins.ts
parent09071200c73f5358e1d0bfb61a274e4f2c4ec52b (diff)
downloadPeerTube-89cd12756035a146bbcc4db78cd3cd64f2f3d88d.tar.gz
PeerTube-89cd12756035a146bbcc4db78cd3cd64f2f3d88d.tar.zst
PeerTube-89cd12756035a146bbcc4db78cd3cd64f2f3d88d.zip
Add hook filters tests
Diffstat (limited to 'server/tests/cli/plugins.ts')
-rw-r--r--server/tests/cli/plugins.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/cli/plugins.ts b/server/tests/cli/plugins.ts
index d7bf8a690..a5257d671 100644
--- a/server/tests/cli/plugins.ts
+++ b/server/tests/cli/plugins.ts
@@ -6,13 +6,13 @@ import {
6 execCLI, 6 execCLI,
7 flushAndRunServer, 7 flushAndRunServer,
8 getConfig, 8 getConfig,
9 getEnvCli, killallServers, 9 getEnvCli,
10 getPluginTestPath,
11 killallServers,
10 reRunServer, 12 reRunServer,
11 root,
12 ServerInfo, 13 ServerInfo,
13 setAccessTokensToServers 14 setAccessTokensToServers
14} from '../../../shared/extra-utils' 15} from '../../../shared/extra-utils'
15import { join } from 'path'
16import { ServerConfig } from '../../../shared/models/server' 16import { ServerConfig } from '../../../shared/models/server'
17import { expect } from 'chai' 17import { expect } from 'chai'
18 18
@@ -29,7 +29,7 @@ describe('Test plugin scripts', function () {
29 it('Should install a plugin from stateless CLI', async function () { 29 it('Should install a plugin from stateless CLI', async function () {
30 this.timeout(60000) 30 this.timeout(60000)
31 31
32 const packagePath = join(root(), 'server', 'tests', 'fixtures', 'peertube-plugin-test') 32 const packagePath = getPluginTestPath()
33 33
34 const env = getEnvCli(server) 34 const env = getEnvCli(server)
35 await execCLI(`${env} npm run plugin:install -- --plugin-path ${packagePath}`) 35 await execCLI(`${env} npm run plugin:install -- --plugin-path ${packagePath}`)