File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ describe('KubeConfig', () => {
396
396
expect ( rc . getAgent ( ) ) . to . be . instanceOf ( HttpsProxyAgent ) ;
397
397
const agent = rc . getAgent ( ) as HttpsProxyAgent ;
398
398
expect ( agent . options . ca ?. toString ( ) ) . to . equal ( expectedCA . toString ( ) ) ;
399
- expect ( agent . proxy . href ) . to . equal ( expectedProxyHref ) ;
399
+ expect ( ( agent as any ) . proxy . href ) . to . equal ( expectedProxyHref ) ;
400
400
} ) ;
401
401
it ( 'should apply http proxy' , async ( ) => {
402
402
const kc = new KubeConfig ( ) ;
@@ -412,8 +412,8 @@ describe('KubeConfig', () => {
412
412
413
413
expect ( rc . getAgent ( ) ) . to . be . instanceOf ( HttpProxyAgent ) ;
414
414
const agent = rc . getAgent ( ) as HttpProxyAgent ;
415
- expect ( agent . options . ca ?. toString ( ) ) . to . equal ( expectedCA . toString ( ) ) ;
416
- expect ( agent . proxy . href ) . to . equal ( expectedProxyHref ) ;
415
+ expect ( ( agent as any ) . options . ca ?. toString ( ) ) . to . equal ( expectedCA . toString ( ) ) ;
416
+ expect ( ( agent as any ) . proxy . href ) . to . equal ( expectedProxyHref ) ;
417
417
} ) ;
418
418
it ( 'should throw an error if proxy-url is provided but the server protocol is not http or https' , async ( ) => {
419
419
const kc = new KubeConfig ( ) ;
You can’t perform that action at this time.
0 commit comments