diff options
Diffstat (limited to 'test/torrent-destroy.js')
-rw-r--r-- | test/torrent-destroy.js | 6 |
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) |