@@ -21,9 +21,9 @@ describe("ScanCreate cases",() => {
2121 const auth = new CxWrapper ( cxScanConfig ) ;
2222 const cxCommandOutput : CxCommandOutput = await auth . scanCreate ( params ) ;
2323 const scanObject = cxCommandOutput . payload . pop ( ) ;
24- const scanShowObject = await auth . scanShow ( scanObject . ID ) ;
24+ const scanShowObject = await auth . scanShow ( scanObject . id ) ;
2525 console . log ( " Json object from successful wait mode case: " + JSON . stringify ( scanShowObject ) ) ;
26- expect ( scanShowObject . payload . pop ( ) . Status ) . toEqual ( "Completed" ) ;
26+ expect ( scanShowObject . payload . pop ( ) . status ) . toEqual ( "Completed" ) ;
2727 } )
2828
2929 it ( 'ScanCreate Failure case' , async ( ) => {
@@ -35,9 +35,9 @@ describe("ScanCreate cases",() => {
3535 const auth = new CxWrapper ( cxScanConfig ) ;
3636 const cxCommandOutput : CxCommandOutput = await auth . scanCreate ( params ) ;
3737 const scanObject = cxCommandOutput . payload . pop ( ) ;
38- const scanShowObject = await auth . scanShow ( scanObject . ID ) ;
38+ const scanShowObject = await auth . scanShow ( scanObject . id ) ;
3939 console . log ( " Json object from failure case: " + JSON . stringify ( scanShowObject ) ) ;
40- expect ( scanShowObject . payload . pop ( ) . Status ) . toEqual ( "Failed" ) ;
40+ expect ( scanShowObject . payload . pop ( ) . status ) . toEqual ( "Failed" ) ;
4141 } )
4242
4343 it ( 'ScanCreate Successful case with Branch' , async ( ) => {
@@ -49,9 +49,9 @@ describe("ScanCreate cases",() => {
4949 const auth = new CxWrapper ( cxScanConfig ) ;
5050 const cxCommandOutput : CxCommandOutput = await auth . scanCreate ( params ) ;
5151 const scanObject = cxCommandOutput . payload . pop ( ) ;
52- const scanShowObject = await auth . scanShow ( scanObject . ID ) ;
52+ const scanShowObject = await auth . scanShow ( scanObject . id ) ;
5353 console . log ( " Json object from successful wait mode case with branch: " + JSON . stringify ( scanShowObject ) ) ;
54- expect ( scanShowObject . payload . pop ( ) . Status ) . toEqual ( "Completed" ) ;
54+ expect ( scanShowObject . payload . pop ( ) . status ) . toEqual ( "Completed" ) ;
5555
5656 } )
5757
@@ -65,8 +65,8 @@ describe("ScanCreate cases",() => {
6565 const auth = new CxWrapper ( cxScanConfig ) ;
6666 const cxCommandOutput : CxCommandOutput = await auth . scanCreate ( params ) ;
6767 const scanObject = cxCommandOutput . payload . pop ( ) ;
68- const scanShowObject = await auth . scanShow ( scanObject . ID ) ;
68+ const scanShowObject = await auth . scanShow ( scanObject . id ) ;
6969 console . log ( " Json object from successful no wait mode case: " + JSON . stringify ( scanShowObject ) ) ;
70- expect ( scanShowObject . payload . pop ( ) . Status ) . toEqual ( "Running" ) ;
70+ expect ( scanShowObject . payload . pop ( ) . status ) . toEqual ( "Running" ) ;
7171 } )
7272} ) ;
0 commit comments