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

@@ -87,6 +87,9 @@ nock('http://example.com')
.reply(302, 'redirecting ad infinitum...', {
'Location': '/redirectloop'
})
.get('/proxyerror')
.replyWithError('throw node')
;
echoheaders('http://example.com');