Skip to content

Commit 45196be

Browse files
committed
More
1 parent a2e0e68 commit 45196be

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/wrapper/CxConstants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export enum CxConstants {
8888
ENGINE = "--engine",
8989
SCAN_TYPE = "CxScan",
9090
SCAN_ASCA = "CxAsca",
91-
SCAN_OSS = "CxOSS",
91+
SCAN_OSS = "CxOss",
9292
PROJECT_TYPE = "CxProject",
9393
PREDICATE_TYPE = "CxPredicate",
9494
CODE_BASHING_TYPE = "CxCodeBashing",

src/main/wrapper/CxWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class CxWrapper {
147147
return await exec.executeCommands(this.config.pathToExecutable, commands, CxConstants.SCAN_ASCA);
148148
}
149149

150-
async scanOSS(sourceFile: string): Promise<CxCommandOutput> {
150+
async scanOss(sourceFile: string): Promise<CxCommandOutput> {
151151
const commands: string[] = [CxConstants.CMD_SCAN, CxConstants.CMD_OSS, CxConstants.SOURCE, sourceFile];
152152
commands.push(...this.initializeCommands(false));
153153
const exec = new ExecutionService();

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('ScanOss Successful case', async () => {
171171
const auth = new CxWrapper(cxScanConfig);
172-
const cxCommandOutput: CxCommandOutput = await auth.scanOSS("tsc/tests/data/python-vul-file.py");
172+
const cxCommandOutput: CxCommandOutput = await auth.scanOss("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)