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:
authorOlivier Lalonde <olalonde@gmail.com>2015-05-28 08:52:11 +0300
committerOlivier Lalonde <olalonde@gmail.com>2015-05-28 08:52:11 +0300
commit9df26f6fcd8e6fb32a81127cfd6bb84192604fa5 (patch)
tree82a9bb7a3929d063a2a6284a2bde92a1071cfcb5 /test
parentdb45a50b7e4fe0ea57ed127b8bf71a1b2e3a3457 (diff)
Use standard JS style
Diffstat (limited to 'test')
-rw-r--r--test/download-webseed-torrent.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/download-webseed-torrent.js b/test/download-webseed-torrent.js
index b2e8501..5c048f8 100644
--- a/test/download-webseed-torrent.js
+++ b/test/download-webseed-torrent.js
@@ -1,5 +1,4 @@
var auto = require('run-auto')
-var DHT = require('bittorrent-dht/server')
var fs = require('fs')
var parseTorrent = require('parse-torrent')
var test = require('tape')
@@ -22,8 +21,8 @@ leavesParsed.announce = []
test('Download using webseed (via .torrent file)', function (t) {
t.plan(5)
- var serve = serveStatic(path.join(__dirname, './content'));
- var httpServer = http.createServer(function(req, res){
+ var serve = serveStatic(path.join(__dirname, './content'))
+ var httpServer = http.createServer(function (req, res) {
var done = finalhandler(req, res)
serve(req, res, done)
})
@@ -41,7 +40,7 @@ test('Download using webseed (via .torrent file)', function (t) {
},
client1: ['httpPort', function (cb, r) {
- leavesParsed.urlList.push('http://localhost:' + r.httpPort + '/' + leavesFilename);
+ leavesParsed.urlList.push('http://localhost:' + r.httpPort + '/' + leavesFilename)
var client1 = new WebTorrent({
tracker: false,
@@ -62,7 +61,7 @@ test('Download using webseed (via .torrent file)', function (t) {
t.pass('client1 downloaded torrent from webseed')
cb(null, client1)
})
- });
+ })
client1.add(leavesParsed)