Integration test: create torrents

This commit is contained in:
DC
2016-09-14 06:52:49 -07:00
parent 051c1516a0
commit 75a4655a0f
17 changed files with 151 additions and 66 deletions

14
test/config.js Normal file
View File

@@ -0,0 +1,14 @@
const path = require('path')
const TEST_DIR = path.join(__dirname, 'tempTestData')
const TEST_DIR_DOWNLOAD = path.join(TEST_DIR, 'Downloads')
const TEST_DIR_DESKTOP = path.join(TEST_DIR, 'Desktop')
module.exports = {
TORRENT_FILES: [path.join(__dirname, 'resources', '1.torrent')],
SEED_FILES: [path.join(TEST_DIR_DESKTOP, 'tmp.jpg')],
SAVED_TORRENT_FILE: path.join(TEST_DIR_DESKTOP, 'saved.torrent'),
TEST_DIR,
TEST_DIR_DOWNLOAD,
TEST_DIR_DESKTOP
}