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:
parent
4913295f9d
commit
1a12f66d63
16 changed files with 401 additions and 181 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue