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>2016-02-14 11:24:22 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-02-14 11:24:22 +0300
commitc6105a4d3ad063d9ccc8762d5f50bebfcbfd1982 (patch)
treede62d3716d985d7b7f424572c5a5e43473a9bd7a /test
parent220c709a27c0d9a4c3b5ef18264b1ea3c5e5d586 (diff)
changes for simple-get 2.0.0
Diffstat (limited to 'test')
-rw-r--r--test/node/server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/node/server.js b/test/node/server.js
index 4c7da45..62565b3 100644
--- a/test/node/server.js
+++ b/test/node/server.js
@@ -28,13 +28,13 @@ test('torrent.createServer: programmatic http server', function (t) {
var host = 'http://localhost:' + port
// Index page should list files in the torrent
- get.concat(host + '/', function (err, data) {
+ get.concat(host + '/', function (err, res, data) {
t.error(err, 'got http response for /')
data = data.toString()
t.ok(data.indexOf('Leaves of Grass by Walt Whitman.epub') !== -1)
// Verify file content for first (and only) file
- get.concat(host + '/0', function (err, data) {
+ get.concat(host + '/0', function (err, res, data) {
t.error(err, 'got http response for /0')
t.deepEqual(data, common.leaves.content)