Integration test: add existing torrent

This commit is contained in:
DC
2016-09-13 22:19:52 -07:00
parent 62c5b78358
commit 051c1516a0
12 changed files with 72 additions and 20 deletions

View File

@@ -147,8 +147,14 @@ function onAppOpen (newArgv) {
}
}
// Remove leading args.
// Production: 1 arg, eg: /Applications/WebTorrent.app/Contents/MacOS/WebTorrent
// Development: 2 args, eg: electron .
// Test: 4 args, eg: electron -r .../mocks.js .
function sliceArgv (argv) {
return argv.slice(config.IS_PRODUCTION ? 1 : 2)
return argv.slice(config.IS_PRODUCTION ? 1
: config.IS_TEST ? 4
: 2)
}
function processArgv (argv) {