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:
authorFeross Aboukhadijeh <feross@feross.org>2016-01-10 20:42:18 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-01-11 02:09:00 +0300
commita364fbfb461b4c923ecb2b105cc7bfff7aaff764 (patch)
tree88ad560421a07fa923b5abc4265ff5db70b46164 /test/common.js
parenta03ff9c38dda6e88d34e279dc9e8107b3992c719 (diff)
test: add alice in wonderland fixture
Diffstat (limited to 'test/common.js')
-rw-r--r--test/common.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/common.js b/test/common.js
index ac2a5f6..5d36ed0 100644
--- a/test/common.js
+++ b/test/common.js
@@ -5,7 +5,7 @@ var path = require('path')
var parseTorrent = require('parse-torrent')
module.exports = {
- // Leaves of Grass by Walt Whitman.epub
+ // Leaves of Grass, by Walt Whitman
leaves: {
contentPath: path.join(__dirname, 'fixtures', 'Leaves of Grass by Walt Whitman.epub'),
torrentPath: path.join(__dirname, 'fixtures', 'leaves.torrent'),
@@ -15,6 +15,16 @@ module.exports = {
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'leaves.torrent'))))
},
+ // Alice's Adventures in Wonderland, by Lewis Carroll
+ alice: {
+ contentPath: path.join(__dirname, 'fixtures', 'alice.txt'),
+ torrentPath: path.join(__dirname, 'fixtures', 'alice.torrent'),
+ content: fs.readFileSync(path.join(__dirname, 'fixtures', 'alice.txt')),
+ torrent: fs.readFileSync(path.join(__dirname, 'fixtures', 'alice.torrent')),
+ parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'alice.torrent'))),
+ magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'alice.torrent'))))
+ },
+
// Folder which contains single file
folder: {
contentPath: path.join(__dirname, 'fixtures', 'folder'),