diff --git a/test/client.js b/test/client.js index 7cf8a9f..395d0f3 100644 --- a/test/client.js +++ b/test/client.js @@ -45,6 +45,10 @@ test('http: client.start()', function (t) { t.error(err) }) + client.on('warning', function (err) { + t.error(err) + }) + client.once('update', function (data) { t.equal(data.announce, announceUrl) t.equal(typeof data.complete, 'number') @@ -76,6 +80,10 @@ test('http: client.stop()', function (t) { t.error(err) }) + client.on('warning', function (err) { + t.error(err) + }) + client.start() setTimeout(function () { @@ -106,6 +114,10 @@ test('http: client.update()', function (t) { t.error(err) }) + client.on('warning', function (err) { + t.error(err) + }) + client.start() client.once('update', function () { @@ -137,6 +149,10 @@ test('http: client.scrape()', function (t) { t.error(err) }) + client.on('warning', function (err) { + t.error(err) + }) + client.once('scrape', function (data) { t.equal(data.announce, announceUrl) t.equal(typeof data.complete, 'number')