[tests] throw error when no options, ALL TESTS PASSING! YAY

This commit is contained in:
cronopio 2013-10-10 11:04:17 -05:00
parent c65ffbb976
commit 86750c7e59

View File

@ -20,7 +20,7 @@ var http = require('http'),
*/
proxy.createProxyServer = proxy.createServer = function createProxyServer(options) {
/* if(!options) {
if(!options) {
throw new Error([
"`options` is needed and it must have the following layout:",
" ",
@ -37,7 +37,7 @@ proxy.createProxyServer = proxy.createServer = function createProxyServer(option
" `options.target and `options.forward` cannot be ",
" both missing "
].join("\n"));
} */
}
return new httpProxy.Server(options);
};