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>2015-01-27 05:04:18 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-01-27 05:04:18 +0300
commitbb07d4db0e213611899d834b022e00936172557e (patch)
tree898c2ab31961ddfa2bc0c950e5bd44b4e1522529 /test/storage.js
parenta3fdd9aafeb70f1fea545879131523b2906c3979 (diff)
JavaScript Standard Style
Diffstat (limited to 'test/storage.js')
-rw-r--r--test/storage.js9
1 files changed, 5 insertions, 4 deletions
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)