diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2014-12-17 02:42:53 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2014-12-17 02:43:07 +0300 |
commit | b8cfe8ea3cde0f0e18d9facc1c3924e783d7f2d0 (patch) | |
tree | c299682116be8675fac761972c13ddea59ed064b /test/basic.js | |
parent | 455e2bdffb40331c4b12cd0a872b4e88b03bc1b8 (diff) |
hack: set name on blob to fix test exception
Diffstat (limited to 'test/basic.js')
-rw-r--r-- | test/basic.js | 8 |
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 { |