Permalink
Browse files

Add Node 9.x to Travis

Locally tested that the tests pass with Node 9.0.0 and 9.1.0
Also modified a test expectation for Node 9.0.0+
  • Loading branch information...
Rob--W committed Nov 11, 2017
1 parent 6741f81 commit d2b5dd38bb756fcdae618ff24b390856564690d2
Showing with 6 additions and 1 deletion.
  1. +1 −0 .travis.yml
  2. +5 −1 test/test.js
@@ -5,6 +5,7 @@ node_js:
- 6
- 7
- 8
- 9
script:
- npm run lint
- npm run test
@@ -392,10 +392,14 @@ describe('Proxy errors', function() {
});
it('Invalid HTTP status code', function(done) {
var errorMessage = 'RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: 0';
if (parseInt(process.versions.node, 10) < 9) {
errorMessage = 'RangeError: Invalid status code: 0';
}
request(cors_anywhere)
.get('/' + bad_status_http_server_url)
.expect('Access-Control-Allow-Origin', '*')
.expect(404, 'Not found because of proxy error: RangeError: Invalid status code: 0', done);
.expect(404, 'Not found because of proxy error: ' + errorMessage, done);
});
it('Content-Encoding invalid body', function(done) {

0 comments on commit d2b5dd3

Please sign in to comment.