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
path: root/test
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2014-12-17 05:37:19 +0300
committerFeross Aboukhadijeh <feross@feross.org>2014-12-17 05:37:19 +0300
commitd0436e41e72780d001048079bf265c08ecb1fd53 (patch)
treedb067ca3d6f730fefb906c86ad52cf3a706aa4be /test
parent6cab794d4df6f3aa6d30d419b3acff6e9ce89f73 (diff)
remove hack from tests
Diffstat (limited to 'test')
-rw-r--r--test/basic-node.js2
-rw-r--r--test/basic.js8
2 files changed, 2 insertions, 8 deletions
diff --git a/test/basic-node.js b/test/basic-node.js
index 9304afe..6039405 100644
--- a/test/basic-node.js
+++ b/test/basic-node.js
@@ -63,7 +63,7 @@ test('client.seed (filesystem path to folder (string))', function (t) {
private: false // also force `private: false` to match transmission
}
- var client = new WebTorrent({ dht: false, trackers: false })
+ var client = new WebTorrent({ dht: false, tracker: false })
client.seed(numbersPath, opts, function (torrent) {
t.equal(torrent.infoHash, '80562f38656b385ea78959010e51a2cc9db41ea0')
client.destroy()
diff --git a/test/basic.js b/test/basic.js
index 912c4b0..5de4f67 100644
--- a/test/basic.js
+++ b/test/basic.js
@@ -52,13 +52,7 @@ test('client.seed (Buffer, Blob)', function (t) {
// Blob
if (typeof Blob !== 'undefined') {
var client2 = new WebTorrent({ dht: false, tracker: false })
- var blob = new Blob([ leavesBook ])
-
- // TODO: just pass name in the opts object – this should work
- // Doing it this way until we use the create-torrent code to process inputs
- // in client.seed
- blob.name = opts.name
- client2.seed(blob, function (torrent) {
+ client2.seed(new Blob([ leavesBook ]), opts, function (torrent) {
verify(t, client2, torrent)
})
} else {