diff options
author | DC <dcposch@dcpos.ch> | 2016-09-20 14:27:03 +0300 |
---|---|---|
committer | DC <dcposch@dcpos.ch> | 2016-09-20 14:27:03 +0300 |
commit | 001506e2234df4ac8fb5d7e14428618d3e64fc75 (patch) | |
tree | acbe6ba1494a98968631cb5af74f37e1678ed8ca /test/node | |
parent | dc108ed0653c112f57dd2beb590de99aaae1878a (diff) |
Seed: allow announce field with trackers disabled
Diffstat (limited to 'test/node')
-rw-r--r-- | test/node/basic.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/node/basic.js b/test/node/basic.js index 6b32fff..8bf598c 100644 --- a/test/node/basic.js +++ b/test/node/basic.js @@ -77,7 +77,8 @@ test('client.seed: filesystem path to file, string', function (t) { client.on('warning', function (err) { t.fail(err) }) client.seed(fixtures.leaves.contentPath, { - name: 'Leaves of Grass by Walt Whitman.epub' + name: 'Leaves of Grass by Walt Whitman.epub', + announce: [] }, function (torrent) { t.equal(client.torrents.length, 1) t.equal(torrent.infoHash, fixtures.leaves.parsedTorrent.infoHash) @@ -98,7 +99,7 @@ test('client.seed: filesystem path to folder with one file, string', function (t client.on('error', function (err) { t.fail(err) }) client.on('warning', function (err) { t.fail(err) }) - client.seed(fixtures.folder.contentPath, function (torrent) { + client.seed(fixtures.folder.contentPath, {announce: false}, function (torrent) { t.equal(client.torrents.length, 1) t.equal(torrent.infoHash, fixtures.folder.parsedTorrent.infoHash) t.equal(torrent.magnetURI, fixtures.folder.magnetURI) @@ -118,7 +119,7 @@ test('client.seed: filesystem path to folder with multiple files, string', funct client.on('error', function (err) { t.fail(err) }) client.on('warning', function (err) { t.fail(err) }) - client.seed(fixtures.numbers.contentPath, function (torrent) { + client.seed(fixtures.numbers.contentPath, {announce: false}, function (torrent) { t.equal(client.torrents.length, 1) t.equal(torrent.infoHash, fixtures.numbers.parsedTorrent.infoHash) t.equal(torrent.magnetURI, fixtures.numbers.magnetURI) |