diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-01-27 05:04:18 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-01-27 05:04:18 +0300 |
commit | bb07d4db0e213611899d834b022e00936172557e (patch) | |
tree | 898c2ab31961ddfa2bc0c950e5bd44b4e1522529 /test/storage.js | |
parent | a3fdd9aafeb70f1fea545879131523b2906c3979 (diff) |
JavaScript Standard Style
Diffstat (limited to 'test/storage.js')
-rw-r--r-- | test/storage.js | 9 |
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) |