Archived
1
0

feat: add tests for shouldEnableProxy

This commit is contained in:
Joe Previte
2021-07-23 14:38:25 -07:00
parent 7b8cd25c0c
commit 67e9eca942
2 changed files with 60 additions and 1 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`)