@@ -107,8 +107,8 @@ describe("Test execute function", () => {
107107describe ( "test getConfig function" ,  ( )  =>  { 
108108  it ( "with configuration file" ,  ( )  =>  { 
109109    const  mockedValues  =  { 
110-       azure_devops : { 
111-         access_token : "access_token" , 
110+       " azure_devops"  : { 
111+         " access_token"  : "access_token" , 
112112        org : "org" , 
113113        project : "project" 
114114      } 
@@ -125,8 +125,8 @@ describe("test getConfig function", () => {
125125    } ) ; 
126126    const  cfg  =  getConfig ( ) ; 
127127    expect ( cfg ) . toStrictEqual ( { 
128-       azure_devops : { 
129-         access_token : "" , 
128+       " azure_devops"  : { 
129+         " access_token"  : "" , 
130130        org : "" , 
131131        project : "" 
132132      } 
@@ -142,7 +142,7 @@ describe("test validatePersonalAccessToken function", () => {
142142      } ) 
143143    ) ; 
144144    const  result  =  await  validatePersonalAccessToken ( { 
145-       access_token : "token" , 
145+       " access_token"  : "token" , 
146146      org : "org" , 
147147      project : "project" 
148148    } ) ; 
@@ -154,7 +154,7 @@ describe("test validatePersonalAccessToken function", () => {
154154      . spyOn ( axios ,  "get" ) 
155155      . mockReturnValueOnce ( Promise . reject ( new  Error ( "fake" ) ) ) ; 
156156    const  result  =  await  validatePersonalAccessToken ( { 
157-       access_token : "token" , 
157+       " access_token"  : "token" , 
158158      org : "org" , 
159159      project : "project" 
160160    } ) ; 
@@ -167,8 +167,8 @@ const testHandleInteractiveModeFunc = async (
167167  verified : boolean 
168168) : Promise < void >  =>  { 
169169  jest . spyOn ( init ,  "getConfig" ) . mockReturnValueOnce ( { 
170-     azure_devops : { 
171-       access_token : "" , 
170+     " azure_devops"  : { 
171+       " access_token"  : "" , 
172172      org : "" , 
173173      project : "" 
174174    } , 
@@ -181,9 +181,9 @@ const testHandleInteractiveModeFunc = async (
181181    } 
182182  } ) ; 
183183  jest . spyOn ( init ,  "prompt" ) . mockResolvedValueOnce ( { 
184-     azdo_org_name : "org_name" , 
185-     azdo_pat : "pat" , 
186-     azdo_project_name : "project" , 
184+     " azdo_org_name"  : "org_name" , 
185+     " azdo_pat"  : "pat" , 
186+     " azdo_project_name"  : "project" , 
187187    toSetupIntrospectionConfig : true 
188188  } ) ; 
189189  jest 
@@ -216,9 +216,9 @@ describe("test handleInteractiveMode function", () => {
216216describe ( "test prompt function" ,  ( )  =>  { 
217217  it ( "positive test" ,  async  done  =>  { 
218218    const  answers  =  { 
219-       azdo_org_name : "org" , 
220-       azdo_pat : "pat" , 
221-       azdo_project_name : "project" , 
219+       " azdo_org_name"  : "org" , 
220+       " azdo_pat"  : "pat" , 
221+       " azdo_project_name"  : "project" , 
222222      toSetupIntrospectionConfig : true 
223223    } ; 
224224    jest . spyOn ( inquirer ,  "prompt" ) . mockResolvedValueOnce ( answers ) ; 
@@ -243,11 +243,11 @@ const testHandleIntrospectionInteractive = async (
243243    } ; 
244244  } 
245245  jest . spyOn ( inquirer ,  "prompt" ) . mockResolvedValueOnce ( { 
246-     azdo_storage_account_name : "storagetest" , 
247-     azdo_storage_table_name : "storagetabletest" , 
248-     azdo_storage_partition_key : "test1234key" , 
249-     azdo_storage_repo_access_key : "repokey" , 
250-     azdo_storage_key_vault_name : withKeyVault  ? "keyvault"  : "" 
246+     " azdo_storage_account_name"  : "storagetest" , 
247+     " azdo_storage_table_name"  : "storagetabletest" , 
248+     " azdo_storage_partition_key"  : "test1234key" , 
249+     " azdo_storage_repo_access_key"  : "repokey" , 
250+     " azdo_storage_key_vault_name"  : withKeyVault  ? "keyvault"  : "" 
251251  } ) ; 
252252  await  handleIntrospectionInteractive ( config ) ; 
253253  expect ( config . introspection ?. azure ?. account_name ) . toBe ( "storagetest" ) ; 
0 commit comments