Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/common.js')
-rw-r--r--test/common.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/test/common.js b/test/common.js
index a2e14ad..129efb3 100644
--- a/test/common.js
+++ b/test/common.js
@@ -7,36 +7,36 @@ var parseTorrent = require('parse-torrent')
module.exports = {
// Leaves of Grass by Walt Whitman.epub
leaves: {
- contentPath: path.join(__dirname, 'content', 'Leaves of Grass by Walt Whitman.epub'),
- torrentPath: path.join(__dirname, 'torrents', 'leaves.torrent'),
- content: fs.readFileSync(path.join(__dirname, 'content', 'Leaves of Grass by Walt Whitman.epub')),
- torrent: fs.readFileSync(path.join(__dirname, 'torrents', 'leaves.torrent')),
- parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'torrents', 'leaves.torrent'))),
- magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'torrents', 'leaves.torrent'))))
+ contentPath: path.join(__dirname, 'fixtures', 'Leaves of Grass by Walt Whitman.epub'),
+ torrentPath: path.join(__dirname, 'fixtures', 'leaves.torrent'),
+ content: fs.readFileSync(path.join(__dirname, 'fixtures', 'Leaves of Grass by Walt Whitman.epub')),
+ torrent: fs.readFileSync(path.join(__dirname, 'fixtures', 'leaves.torrent')),
+ parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'leaves.torrent'))),
+ magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'leaves.torrent'))))
},
// Folder which contains single file
folder: {
- contentPath: path.join(__dirname, 'content', 'folder'),
- torrentPath: path.join(__dirname, 'torrents', 'folder.torrent'),
- torrent: fs.readFileSync(path.join(__dirname, 'torrents', 'folder.torrent')),
- parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'torrents', 'folder.torrent'))),
- magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'torrents', 'folder.torrent'))))
+ contentPath: path.join(__dirname, 'fixtures', 'folder'),
+ torrentPath: path.join(__dirname, 'fixtures', 'folder.torrent'),
+ torrent: fs.readFileSync(path.join(__dirname, 'fixtures', 'folder.torrent')),
+ parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'folder.torrent'))),
+ magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'folder.torrent'))))
},
// Folder which contains multiple files
numbers: {
- contentPath: path.join(__dirname, 'content', 'numbers'),
- torrentPath: path.join(__dirname, 'torrents', 'numbers.torrent'),
- torrent: fs.readFileSync(path.join(__dirname, 'torrents', 'numbers.torrent')),
- parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'torrents', 'numbers.torrent'))),
- magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'torrents', 'numbers.torrent'))))
+ contentPath: path.join(__dirname, 'fixtures', 'numbers'),
+ torrentPath: path.join(__dirname, 'fixtures', 'numbers.torrent'),
+ torrent: fs.readFileSync(path.join(__dirname, 'fixtures', 'numbers.torrent')),
+ parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'numbers.torrent'))),
+ magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'numbers.torrent'))))
},
// Torrent file with "private" flag
bunny: {
- torrentPath: path.join(__dirname, 'torrents', 'big-buck-bunny-private.torrent'),
- torrent: fs.readFileSync(path.join(__dirname, 'torrents', 'big-buck-bunny-private.torrent')),
- parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'torrents', 'big-buck-bunny-private.torrent')))
+ torrentPath: path.join(__dirname, 'fixtures', 'big-buck-bunny-private.torrent'),
+ torrent: fs.readFileSync(path.join(__dirname, 'fixtures', 'big-buck-bunny-private.torrent')),
+ parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'big-buck-bunny-private.torrent')))
}
}