mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add hook filters tests
This commit is contained in:
@@ -201,6 +201,10 @@ function getPluginPackageJSON (server: ServerInfo, npmName: string) {
|
||||
return readJSON(path)
|
||||
}
|
||||
|
||||
function getPluginTestPath (suffix = '') {
|
||||
return join(root(), 'server', 'tests', 'fixtures', 'peertube-plugin-test' + suffix)
|
||||
}
|
||||
|
||||
export {
|
||||
listPlugins,
|
||||
listAvailablePlugins,
|
||||
@@ -213,5 +217,6 @@ export {
|
||||
getPluginRegisteredSettings,
|
||||
getPackageJSONPath,
|
||||
updatePluginPackageJSON,
|
||||
getPluginPackageJSON
|
||||
getPluginPackageJSON,
|
||||
getPluginTestPath
|
||||
}
|
||||
|
||||
@@ -171,7 +171,8 @@ async function runServer (server: ServerInfo, configOverrideArg?: any, args = []
|
||||
thumbnails: `test${server.internalServerNumber}/thumbnails/`,
|
||||
torrents: `test${server.internalServerNumber}/torrents/`,
|
||||
captions: `test${server.internalServerNumber}/captions/`,
|
||||
cache: `test${server.internalServerNumber}/cache/`
|
||||
cache: `test${server.internalServerNumber}/cache/`,
|
||||
plugins: `test${server.internalServerNumber}/plugins/`
|
||||
},
|
||||
admin: {
|
||||
email: `admin${server.internalServerNumber}@example.com`
|
||||
|
||||
Reference in New Issue
Block a user