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/torrent-destroy.js
parent0d2dc8c90900d1ea2103f6a457c76c7998eab3a6 (diff)
use webtorrent-fixtures
Diffstat (limited to 'test/torrent-destroy.js')
-rw-r--r--test/torrent-destroy.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/torrent-destroy.js b/test/torrent-destroy.js
index a0a2e5e..ceae205 100644
--- a/test/torrent-destroy.js
+++ b/test/torrent-destroy.js
@@ -1,4 +1,4 @@
-var common = require('./common')
+var fixtures = require('webtorrent-fixtures')
var test = require('tape')
var WebTorrent = require('../')
@@ -10,11 +10,11 @@ test('torrent.destroy: destroy and remove torrent', function (t) {
client.on('error', function (err) { t.fail(err) })
client.on('warning', function (err) { t.fail(err) })
- var torrent = client.add(common.leaves.parsedTorrent.infoHash)
+ var torrent = client.add(fixtures.leaves.parsedTorrent.infoHash)
t.equal(client.torrents.length, 1)
torrent.on('infoHash', function () {
- t.equal(torrent.infoHash, common.leaves.parsedTorrent.infoHash)
+ t.equal(torrent.infoHash, fixtures.leaves.parsedTorrent.infoHash)
torrent.destroy(function (err) { t.error(err, 'torrent destroyed') })
t.equal(client.torrents.length, 0)