feat: add tests for shouldEnableProxy

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