From ded44cb5d00c2e8a0616a028dc9c5c8f108c4f5a Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Thu, 13 Jul 2017 17:32:45 +0200 Subject: [PATCH] Upgrade supertest + nock to recent version The most recent version that was explicitly marked as compatible with Node.js 0.10.x --- package.json | 6 +++--- test/test.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index c70a180..3f60f55 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,8 @@ "istanbul": "^0.4.2", "lolex": "^1.5.0", "mocha": "^3.4.2", - "nock": "~1.9.0", - "supertest": "~0.15.0" + "nock": "^8.2.1", + "supertest": "^2.0.1" }, "scripts": { "lint": "eslint .", @@ -39,7 +39,7 @@ "test-coverage": "istanbul cover ./node_modules/.bin/_mocha -- test/test.js test/test-ratelimit.js --reporter spec" }, "engines": { - "node": ">=0.6.6", + "node": ">=0.10.0", "npm": ">=1.1.0" } } diff --git a/test/test.js b/test/test.js index eecd7c2..910f4b7 100644 --- a/test/test.js +++ b/test/test.js @@ -165,7 +165,7 @@ describe('Basic functionality', function() { .expect('x-final-url', 'http://example.com/redirecttarget') .expect('access-control-expose-headers', /some-header,x-final-url/) .expectNoHeader('header at redirect') - .expect(200, '', done); + .expect(200, undefined, done); }); it('GET with redirect should be followed', function(done) {