File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export default class CxOssResult {
1313
1414
1515 static parseResult ( resultObject : any ) : CxOssResult [ ] {
16- let packages = resultObject . Packages ;
16+ const packages = resultObject . Packages ;
1717 let ossResults : CxOssResult [ ] = [ ] ;
1818 if ( packages instanceof Array ) {
1919 ossResults = packages . map ( ( member : any ) => {
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ describe("ScanCreate cases", () => {
169169
170170 it . skip ( 'ScanOss Successful case' , async ( ) => {
171171 const wrapper = new CxWrapper ( cxScanConfig ) ;
172- const cxCommandOutput : CxCommandOutput = await wrapper . scanOss ( "tsc/tests/data/package.json" ) ;
172+ const cxCommandOutput : CxCommandOutput = await wrapper . ossScanResults ( "tsc/tests/data/package.json" ) ;
173173 console . log ( "Json object from scanOSS successful case: " + JSON . stringify ( cxCommandOutput ) ) ;
174174 expect ( cxCommandOutput . payload ) . toBeDefined ( ) ;
175175 expect ( cxCommandOutput . exitCode ) . toBe ( 0 ) ;
You can’t perform that action at this time.
0 commit comments