@@ -10,7 +10,7 @@ type IPartialConfig = Partial<Config>;
1010describe ( 'config' , ( ) => {
1111 it ( 'handles funky string enum' , ( ) => {
1212 const rawConfig : IConfig = {
13- awsAccountID : 123 ,
13+ awsAccountID : ' 123' ,
1414 awsRegion : 'us-east-1' ,
1515 originRegion : 'us-east-2' ,
1616 addXForwardedHostHeader : true ,
@@ -23,7 +23,7 @@ describe('config', () => {
2323 const config = loader . load ( rawConfig ) ;
2424
2525 expect ( config ) . toBeDefined ( ) ;
26- expect ( config . awsAccountID ) . toBe ( 123 ) ;
26+ expect ( config . awsAccountID ) . toBe ( ' 123' ) ;
2727 expect ( config . awsRegion ) . toBe ( process . env . AWS_REGION || 'us-east-1' ) ;
2828 expect ( config . originRegion ) . toBe ( 'us-east-2' ) ;
2929 expect ( config . addXForwardedHostHeader ) . toBe ( true ) ;
@@ -37,7 +37,7 @@ describe('config', () => {
3737 const config = loader . load ( rawConfig ) ;
3838
3939 expect ( config ) . toBeDefined ( ) ;
40- expect ( config . awsAccountID ) . toBe ( 0 ) ;
40+ expect ( config . awsAccountID ) . toBe ( '' ) ;
4141 expect ( config . awsRegion ) . toBe ( process . env . AWS_REGION || 'us-east-1' ) ;
4242 expect ( config . originRegion ) . toBe ( 'us-east-2' ) ;
4343 expect ( config . addXForwardedHostHeader ) . toBe ( true ) ;
@@ -50,7 +50,7 @@ describe('config', () => {
5050 const config = loader . load ( path . join ( __dirname , './config.test.yml' ) ) ;
5151
5252 expect ( config ) . toBeDefined ( ) ;
53- expect ( config . awsAccountID ) . toBe ( 0 ) ;
53+ expect ( config . awsAccountID ) . toBe ( '00123456' ) ;
5454 expect ( config . awsRegion ) . toBe ( process . env . AWS_REGION || 'us-east-2' ) ;
5555 expect ( config . originRegion ) . toBe ( 'us-east-2' ) ;
5656 expect ( config . addXForwardedHostHeader ) . toBe ( true ) ;
0 commit comments