1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Add more CLI tests

This commit is contained in:
Chocobozzz 2019-06-13 11:09:38 +02:00
parent 4913295f9d
commit 1a12f66d63
No known key found for this signature in database
GPG key ID: 583A612D890159BE
16 changed files with 401 additions and 181 deletions

View file

@ -134,6 +134,10 @@ function isProdInstance () {
return process.env.NODE_ENV === 'production'
}
function getAppNumber () {
return process.env.NODE_APP_INSTANCE
}
function root () {
// We are in /helpers/utils.js
const paths = [ __dirname, '..', '..' ]
@ -256,6 +260,7 @@ const execPromise = promisify1<string, string>(exec)
export {
isTestInstance,
isProdInstance,
getAppNumber,
objectConverter,
root,