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>2016-02-28 06:10:08 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-02-28 06:10:08 +0300
commitff552814b86d11c171226c20efd9c9d1c3d968be (patch)
tree13721145118b68b20ca6eaa478ba259cab703252 /test/client-destroy.js
parent0d2dc8c90900d1ea2103f6a457c76c7998eab3a6 (diff)
use webtorrent-fixtures
Diffstat (limited to 'test/client-destroy.js')
-rw-r--r--test/client-destroy.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/client-destroy.js b/test/client-destroy.js
index d2e66b8..deda9f3 100644
--- a/test/client-destroy.js
+++ b/test/client-destroy.js
@@ -1,4 +1,4 @@
-var common = require('./common')
+var fixtures = require('webtorrent-fixtures')
var test = require('tape')
var WebTorrent = require('../')
@@ -13,7 +13,7 @@ test('after client.destroy(), throw on client.add() or client.seed()', function
client.destroy(function (err) { t.error(err, 'client destroyed') })
t.throws(function () {
- client.add('magnet:?xt=urn:btih:' + common.leaves.parsedTorrent.infoHash)
+ client.add('magnet:?xt=urn:btih:' + fixtures.leaves.parsedTorrent.infoHash)
})
t.throws(function () {
client.seed(new Buffer('sup'))
@@ -28,10 +28,10 @@ test('after client.destroy(), no "torrent" or "ready" events emitted', function
client.on('error', function (err) { t.fail(err) })
client.on('warning', function (err) { t.fail(err) })
- client.add(common.leaves.torrent, { name: 'leaves' }, function () {
+ client.add(fixtures.leaves.torrent, { name: 'leaves' }, function () {
t.fail('unexpected "torrent" event (from add)')
})
- client.seed(common.leaves.content, { name: 'leaves' }, function () {
+ client.seed(fixtures.leaves.content, { name: 'leaves' }, function () {
t.fail('unexpected "torrent" event (from seed)')
})
client.on('ready', function () {