@@ -27,7 +27,7 @@ describe('no proxy is set', () => {
2727} ) ;
2828
2929describe ( 'http proxy is set' , ( ) => {
30- const httpProxyCofig : Partial < Config > = {
30+ const httpProxyConfig : Partial < Config > = {
3131 proxy : {
3232 protocol : 'http' ,
3333 host : '10.0.2.2' ,
@@ -36,12 +36,12 @@ describe('http proxy is set', () => {
3636 } ;
3737 beforeAll ( ( ) => {
3838 jest . mock ( '../source/config' , ( ) : { config : Partial < Config > } => ( {
39- config : httpProxyCofig
39+ config : httpProxyConfig
4040 } ) ) ;
4141 } ) ;
4242 test ( 'actually mocked' , async ( ) => {
4343 const { config } = await import ( '../source/config' ) ;
44- expect ( config ) . toEqual ( httpProxyCofig ) ;
44+ expect ( config ) . toEqual ( httpProxyConfig ) ;
4545 } ) ;
4646 test ( 'should have proxyUrl set' , async ( ) => {
4747 const { proxyUrl } = await import ( '../source/utils/agent' ) ;
@@ -53,7 +53,7 @@ describe('http proxy is set', () => {
5353} ) ;
5454
5555describe ( 'https proxy is set' , ( ) => {
56- const httpsProxyCofig : Partial < Config > = {
56+ const httpsProxyConfig : Partial < Config > = {
5757 proxy : {
5858 protocol : 'https' ,
5959 host : '10.0.2.2' ,
@@ -62,12 +62,12 @@ describe('https proxy is set', () => {
6262 } ;
6363 beforeAll ( ( ) => {
6464 jest . mock ( '../source/config' , ( ) : { config : Partial < Config > } => ( {
65- config : httpsProxyCofig
65+ config : httpsProxyConfig
6666 } ) ) ;
6767 } ) ;
6868 test ( 'actually mocked' , async ( ) => {
6969 const { config } = await import ( '../source/config' ) ;
70- expect ( config ) . toEqual ( httpsProxyCofig ) ;
70+ expect ( config ) . toEqual ( httpsProxyConfig ) ;
7171 } ) ;
7272 test ( 'agent should contain http and https' , async ( ) => {
7373 const { proxyUrl, default : agent } = await import (
@@ -76,11 +76,11 @@ describe('https proxy is set', () => {
7676 expect ( proxyUrl ) . toBe ( 'https://10.0.2.2:1080' ) ;
7777 expect ( agent . http ) . toHaveProperty (
7878 'proxyOptions.host' ,
79- httpsProxyCofig . proxy . host
79+ httpsProxyConfig . proxy . host
8080 ) ;
8181 expect ( agent . http ) . toHaveProperty (
8282 'proxyOptions.port' ,
83- parseInt ( httpsProxyCofig . proxy . port )
83+ parseInt ( httpsProxyConfig . proxy . port )
8484 ) ;
8585 expect ( agent . http ) . toHaveProperty ( 'keepAlive' , true ) ;
8686 expect ( agent . https ) . toHaveProperty ( 'keepAlive' , true ) ;
0 commit comments