Archived
1
0

Merge pull request #3846 from cdr/jsjoeio-test-should-enable-proxy

feat: add tests for shouldEnableProxy
This commit is contained in:
Joe Previte
2021-07-26 11:38:09 -07:00
committed by GitHub
4 changed files with 92 additions and 2 deletions

View File

@ -62,7 +62,7 @@ function newProxyAgent(inVSCode: boolean): http.Agent {
// If they have $NO_PROXY set to example.com then this check won't work!
// But that's drastically unlikely.
function shouldEnableProxy(): boolean {
export function shouldEnableProxy(): boolean {
let shouldEnable = false
const httpProxy = proxyFromEnv.getProxyForUrl(`http://example.com`)