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:42:53 +0300
committerFeross Aboukhadijeh <feross@feross.org>2014-12-17 02:43:07 +0300
commitb8cfe8ea3cde0f0e18d9facc1c3924e783d7f2d0 (patch)
treec299682116be8675fac761972c13ddea59ed064b /test/basic.js
parent455e2bdffb40331c4b12cd0a872b4e88b03bc1b8 (diff)
hack: set name on blob to fix test exception
Diffstat (limited to 'test/basic.js')
-rw-r--r--test/basic.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/basic.js b/test/basic.js
index 6928f22..912c4b0 100644
--- a/test/basic.js
+++ b/test/basic.js
@@ -51,8 +51,14 @@ test('client.seed (Buffer, Blob)', function (t) {
// Blob
if (typeof Blob !== 'undefined') {
- client2.seed(new Blob([ leavesBook ]), opts, function (torrent) {
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) {
verify(t, client2, torrent)
})
} else {