diff options
Diffstat (limited to 'test/common.js')
-rw-r--r-- | test/common.js | 12 |
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'), |