mirror of
https://github.com/d0zingcat/cors-anywhere.git
synced 2026-06-02 07:26:52 +00:00
Add test for proxy error
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user