Integration tests on Windows

This commit is contained in:
DC
2016-09-18 20:37:32 -07:00
parent ed4daeb560
commit ad1162c7de
29 changed files with 3 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
const path = require('path')
const os = require('os')
const TEST_DIR = path.join(process.platform === 'win32' ? os.tmpdir() : '/tmp', 'WebTorrentTest')
const TEMP_DIR = process.platform === 'win32' ? 'C:\\Windows\\Temp' : '/tmp'
const TEST_DIR = path.join(TEMP_DIR, 'WebTorrentTest')
const TEST_DIR_DOWNLOAD = path.join(TEST_DIR, 'Downloads')
const TEST_DIR_DESKTOP = path.join(TEST_DIR, 'Desktop')