Skip to content

Commit b93668d

Browse files
committed
Refactors variable declarations and updates method call
1 parent d16fc25 commit b93668d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/oss/CxOss.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) => {

src/tests/ScanTest.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)