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
path: root/test
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-01-27 05:04:18 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-01-27 05:04:18 +0300
commitbb07d4db0e213611899d834b022e00936172557e (patch)
tree898c2ab31961ddfa2bc0c950e5bd44b4e1522529 /test
parenta3fdd9aafeb70f1fea545879131523b2906c3979 (diff)
JavaScript Standard Style
Diffstat (limited to 'test')
-rw-r--r--test/cmd.js1
-rw-r--r--test/download-dht-magnet.js3
-rw-r--r--test/download-dht-torrent.js3
-rw-r--r--test/storage.js9
4 files changed, 7 insertions, 9 deletions
diff --git a/test/cmd.js b/test/cmd.js
index 196104a..36e2c0b 100644
--- a/test/cmd.js
+++ b/test/cmd.js
@@ -22,7 +22,6 @@ test('Command line: webtorrent help', function (t) {
t.error(err) // no error, exit code 0
t.ok(data.toLowerCase().indexOf('usage') !== -1)
})
-
})
test('Command line: webtorrent version', function (t) {
diff --git a/test/download-dht-magnet.js b/test/download-dht-magnet.js
index 639f485..6290464 100644
--- a/test/download-dht-magnet.js
+++ b/test/download-dht-magnet.js
@@ -85,8 +85,7 @@ test('Download using DHT (via magnet uri)', function (t) {
cb(null, client2)
})
})
- }],
-
+ }]
}, function (err, r) {
t.error(err)
r.client1.destroy(function () {
diff --git a/test/download-dht-torrent.js b/test/download-dht-torrent.js
index 510092f..09b9b50 100644
--- a/test/download-dht-torrent.js
+++ b/test/download-dht-torrent.js
@@ -84,8 +84,7 @@ test('Download using DHT (via .torrent file)', function (t) {
cb(null, client2)
})
})
- }],
-
+ }]
}, function (err, r) {
t.error(err)
r.client1.destroy(function () {
diff --git a/test/storage.js b/test/storage.js
index bc7117b..6665be6 100644
--- a/test/storage.js
+++ b/test/storage.js
@@ -7,9 +7,9 @@ var torrents = [ 'leaves', 'pride' ].map(function (name) {
var torrent = fs.readFileSync(__dirname + '/torrents/' + name + '.torrent')
return {
- name : name,
- torrent : torrent,
- parsedTorrent : parseTorrent(torrent)
+ name: name,
+ torrent: torrent,
+ parsedTorrent: parseTorrent(torrent)
}
})
@@ -21,7 +21,8 @@ torrents.forEach(function (torrent) {
t.equal(storage.files.length, parsedTorrent.files.length)
t.equal(storage.pieces.length, parsedTorrent.pieces.length)
- var length = 0, pieces = 0
+ var length = 0
+ var pieces = 0
storage.pieces.forEach(function (piece, index) {
t.notOk(piece.verified)