Add test for proxy error

This commit is contained in:
Rob Wu
2015-05-06 18:40:04 +02:00
parent e8202aa31f
commit f98705f27b
2 changed files with 10 additions and 0 deletions

View File

@@ -263,6 +263,13 @@ describe('Basic functionality', function() {
})
.end(done);
});
it('Proxy error', function(done) {
request(cors_anywhere)
.get('/example.com/proxyerror')
.expect('Access-Control-Allow-Origin', '*')
.expect(404, 'Not found because of proxy error: Error: throw node', done);
});
});
describe('server on https', function() {