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:
Diffstat (limited to 'test/client-remove.js')
-rw-r--r--test/client-remove.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/client-remove.js b/test/client-remove.js
index ca75674..a62f0cb 100644
--- a/test/client-remove.js
+++ b/test/client-remove.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('client.remove: remove by Torrent object', 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)
client.remove(torrent, function (err) { t.error(err, 'torrent destroyed') })
t.equal(client.torrents.length, 0)