diff --git a/test/test-helpers.js b/test/test-helpers.js index 4b3e47a..a71077c 100644 --- a/test/test-helpers.js +++ b/test/test-helpers.js @@ -8,17 +8,6 @@ s.on('/', function (req, res) { res.end('ok'); }); -s.on('/empty', function (req, res) { - res.end(); -}); - -s.on('/404', function (req, res) { - setTimeout(function () { - res.statusCode = 404; - res.end('not'); - }, 10); -}); - tape('setup', function (t) { s.listen(s.port, function () { t.end(); @@ -33,6 +22,14 @@ tape('callback mode', {timeout: 1000}, function (t) { }); }); +tape('stream mode', {timeout: 1000}, function (t) { + got.get(s.url) + .on('data', function (data) { + t.equal(data.toString(), 'ok'); + t.end(); + }); +}); + tape('cleanup', function (t) { s.close(); t.end();