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>2014-12-17 02:41:06 +0300
committerFeross Aboukhadijeh <feross@feross.org>2014-12-17 02:43:07 +0300
commit455e2bdffb40331c4b12cd0a872b4e88b03bc1b8 (patch)
tree4dfa98df00442a1b7a5fc0e599b9380fbecea4f9 /test/basic-node.js
parent58c1f4cb260c6d163e368a157e1a675a43cd38d4 (diff)
use correct tracker option `tracker`; not `trackers`
Diffstat (limited to 'test/basic-node.js')
-rw-r--r--test/basic-node.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/basic-node.js b/test/basic-node.js
index 950ba84..caf69b6 100644
--- a/test/basic-node.js
+++ b/test/basic-node.js
@@ -21,7 +21,7 @@ test('client.add (http url to a torrent file (string))', function (t) {
if (err) throw err
server.listen(port, function () {
var url = 'http://127.0.0.1:' + port
- var client = new WebTorrent({ dht: false, trackers: false })
+ var client = new WebTorrent({ dht: false, tracker: false })
client.add(url, function (torrent) {
t.equal(torrent.infoHash, leavesTorrent.infoHash)
client.destroy()
@@ -34,7 +34,7 @@ test('client.add (http url to a torrent file (string))', function (t) {
test('client.add (filesystem path to a torrent file (string))', function (t) {
t.plan(1)
- var client = new WebTorrent({ dht: false, trackers: false })
+ var client = new WebTorrent({ dht: false, tracker: false })
client.add(leavesPath, function (torrent) {
t.equal(torrent.infoHash, leavesTorrent.infoHash)
client.destroy()
@@ -44,7 +44,7 @@ test('client.add (filesystem path to a torrent file (string))', function (t) {
test('client.seed (filesystem path to file (string))', function (t) {
t.plan(1)
- var client = new WebTorrent({ dht: false, trackers: false })
+ var client = new WebTorrent({ dht: false, tracker: false })
client.seed(leavesBookPath, function (torrent) {
t.equal(torrent.infoHash, leavesTorrent.infoHash)
client.destroy()