Fix peertube script

pull/1103/head
Chocobozzz 2018-09-20 16:35:48 +02:00
parent 00f9e41ebf
commit 5c142a4bab
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
// Order of the tests we want to execute
import './create-transcoding-job'
import './create-import-video-file-job'
import './create-transcoding-job'
import './peertube'
import './reset-password'
import './update-host'

View File

@ -40,7 +40,7 @@ describe('Test CLI wrapper', function () {
this.timeout(60000)
const env = getEnvCli(server)
const stdout = await execCLI(`${env} ` + cmd + ` auth add --url ${server.url} -U user_1 -p "super password"`)
await execCLI(`${env} ` + cmd + ` auth add --url ${server.url} -U user_1 -p "super password"`)
})
after(async function () {

View File

@ -62,7 +62,7 @@ if (!process.argv.slice(2).length) {
getSettings()
.then(settings => {
const state = (settings.default === -1) ?
const state = (settings.default === undefined || settings.default === -1) ?
'no instance selected, commands will require explicit arguments' :
('instance ' + settings.remotes[settings.default] + ' selected')
program