@@ -133,7 +133,7 @@ describe("fetch", () => {
133133
134134 let options : node_fetch . RequestInit = { agent : undefined }
135135 await api ( url , options , true , { HTTPS_PROXY : proxyUrl } )
136- let agent = options . agent as HttpsProxyAgent
136+ let agent = options . agent as HttpsProxyAgent < string >
137137 expect ( agent [ "proxy" ] . href ) . toBe ( proxyUrl )
138138 } )
139139
@@ -145,7 +145,7 @@ describe("fetch", () => {
145145
146146 let options : node_fetch . RequestInit = { agent : undefined }
147147 await api ( url , options , true , { https_proxy : proxyUrl } )
148- let agent = options . agent as HttpsProxyAgent
148+ let agent = options . agent as HttpsProxyAgent < string >
149149 expect ( agent [ "proxy" ] . href ) . toBe ( proxyUrl )
150150 } )
151151
@@ -157,7 +157,7 @@ describe("fetch", () => {
157157
158158 let options : node_fetch . RequestInit = { agent : undefined }
159159 await api ( url , options , true , { HTTP_PROXY : proxyUrl } )
160- let agent = options . agent as HttpProxyAgent
160+ let agent = options . agent as HttpProxyAgent < string >
161161 expect ( agent [ "proxy" ] . href ) . toBe ( proxyUrl )
162162 } )
163163
@@ -169,7 +169,7 @@ describe("fetch", () => {
169169
170170 let options : node_fetch . RequestInit = { agent : undefined }
171171 await api ( url , options , true , { http_proxy : proxyUrl } )
172- let agent = options . agent as HttpProxyAgent
172+ let agent = options . agent as HttpProxyAgent < string >
173173 expect ( agent [ "proxy" ] . href ) . toBe ( proxyUrl )
174174 } )
175175} )
0 commit comments