diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-06-11 04:42:54 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-06-11 04:43:45 +0300 |
commit | c0b3448dd95fe2472d68b12bbff77761cc072a68 (patch) | |
tree | 4bc6dc99565b37f9eda603208c2becd6b316161c /test | |
parent | 38de6fd5893a10acc3c6b52ba3fad984e13854c6 (diff) |
test style
Diffstat (limited to 'test')
-rw-r--r-- | test/basic.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/basic.js b/test/basic.js index 4b44c46..2a74099 100644 --- a/test/basic.js +++ b/test/basic.js @@ -125,11 +125,11 @@ test('client.seed: torrent file (Buffer)', function (t) { } var client = new WebTorrent({ dht: false, tracker: false }) - client.seed(leavesBook, opts, function (torrent1) { + client.seed(leavesBook, opts, function (torrent) { t.equal(client.torrents.length, 1) - t.equal(torrent1.infoHash, leavesTorrent.infoHash) - t.equal(torrent1.magnetURI, leavesMagnetURI) - client.remove(torrent1) + t.equal(torrent.infoHash, leavesTorrent.infoHash) + t.equal(torrent.magnetURI, leavesMagnetURI) + client.remove(torrent) t.equal(client.torrents.length, 0) client.destroy() }) @@ -151,11 +151,11 @@ test('client.seed: torrent file (Blob)', function (t) { if (global.Blob !== undefined) { t.plan(4) var client = new WebTorrent({ dht: false, tracker: false }) - client.seed(new global.Blob([ leavesBook ]), opts, function (torrent2) { + client.seed(new global.Blob([ leavesBook ]), opts, function (torrent) { t.equal(client.torrents.length, 1) - t.equal(torrent2.infoHash, leavesTorrent.infoHash) - t.equal(torrent2.magnetURI, leavesMagnetURI) - client.remove(torrent2) + t.equal(torrent.infoHash, leavesTorrent.infoHash) + t.equal(torrent.magnetURI, leavesMagnetURI) + client.remove(torrent) t.equal(client.torrents.length, 0) client.destroy() }) |