Skip to content

Commit de9af40

Browse files
committed
comment vorpal tests
1 parent cc5cd1e commit de9af40

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

src/tests/ScanTest.test.ts

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -137,36 +137,36 @@ describe("ScanCreate cases", () => {
137137
expect(cxCommandOutput.payload[0].status).toBeUndefined();
138138
});
139139

140-
it('ScanVorpal Successful case', async () => {
141-
const auth = await cxWrapperFactory.createWrapper(cxScanConfig);
142-
const cxCommandOutput: CxCommandOutput = await auth.scanVorpal("tsc/tests/data/python-vul-file.py");
143-
console.log("Json object from scanVorpal successful case: " + JSON.stringify(cxCommandOutput));
144-
const scanObject = cxCommandOutput.payload.pop();
145-
expect(cxCommandOutput.payload).toBeDefined();
146-
expect(cxCommandOutput.exitCode).toBe(0);
147-
expect(scanObject.status).toEqual(true);
148-
});
149-
150-
it('ScanVorpal with complex name Successful case', async () => {
151-
const auth = await cxWrapperFactory.createWrapper(cxScanConfig);
152-
const cxCommandOutput: CxCommandOutput = await auth.scanVorpal("tsc/tests/data/var express = require('express';.js");
153-
console.log("Json object from scanVorpal successful case: " + JSON.stringify(cxCommandOutput));
154-
const scanObject = cxCommandOutput.payload.pop();
155-
expect(cxCommandOutput.payload).toBeDefined();
156-
expect(cxCommandOutput.exitCode).toBe(0);
157-
expect(scanObject.status).toEqual(true);
158-
});
159-
160-
it('ScanVorpal Successful case with update version', async () => {
161-
const auth = await cxWrapperFactory.createWrapper(cxScanConfig);
162-
const cxCommandOutput: CxCommandOutput = await auth.scanVorpal("tsc/tests/data/python-vul-file.py", true);
163-
console.log("Json object from scanVorpal successful case with update version: " + JSON.stringify(cxCommandOutput));
164-
const scanObject = cxCommandOutput.payload.pop();
165-
expect(cxCommandOutput.payload).toBeDefined();
166-
expect(cxCommandOutput.exitCode).toBe(0);
167-
expect(scanObject.status).toEqual(true);
168-
expect(Number.isInteger(scanObject.scanDetails[0].line)).toBe(true);
169-
expect(typeof scanObject.scanDetails[0].description).toBe('string');
170-
});
140+
// it('ScanVorpal Successful case', async () => {
141+
// const auth = await cxWrapperFactory.createWrapper(cxScanConfig);
142+
// const cxCommandOutput: CxCommandOutput = await auth.scanVorpal("tsc/tests/data/python-vul-file.py");
143+
// console.log("Json object from scanVorpal successful case: " + JSON.stringify(cxCommandOutput));
144+
// const scanObject = cxCommandOutput.payload.pop();
145+
// expect(cxCommandOutput.payload).toBeDefined();
146+
// expect(cxCommandOutput.exitCode).toBe(0);
147+
// expect(scanObject.status).toEqual(true);
148+
// });
149+
//
150+
// it('ScanVorpal with complex name Successful case', async () => {
151+
// const auth = await cxWrapperFactory.createWrapper(cxScanConfig);
152+
// const cxCommandOutput: CxCommandOutput = await auth.scanVorpal("tsc/tests/data/var express = require('express';.js");
153+
// console.log("Json object from scanVorpal successful case: " + JSON.stringify(cxCommandOutput));
154+
// const scanObject = cxCommandOutput.payload.pop();
155+
// expect(cxCommandOutput.payload).toBeDefined();
156+
// expect(cxCommandOutput.exitCode).toBe(0);
157+
// expect(scanObject.status).toEqual(true);
158+
// });
159+
//
160+
// it('ScanVorpal Successful case with update version', async () => {
161+
// const auth = await cxWrapperFactory.createWrapper(cxScanConfig);
162+
// const cxCommandOutput: CxCommandOutput = await auth.scanVorpal("tsc/tests/data/python-vul-file.py", true);
163+
// console.log("Json object from scanVorpal successful case with update version: " + JSON.stringify(cxCommandOutput));
164+
// const scanObject = cxCommandOutput.payload.pop();
165+
// expect(cxCommandOutput.payload).toBeDefined();
166+
// expect(cxCommandOutput.exitCode).toBe(0);
167+
// expect(scanObject.status).toEqual(true);
168+
// expect(Number.isInteger(scanObject.scanDetails[0].line)).toBe(true);
169+
// expect(typeof scanObject.scanDetails[0].description).toBe('string');
170+
// });
171171

172172
});

0 commit comments

Comments
 (0)