From c6105a4d3ad063d9ccc8762d5f50bebfcbfd1982 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 14 Feb 2016 00:24:22 -0800 Subject: changes for simple-get 2.0.0 --- test/node/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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) -- cgit v1.2.3