Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrompflopes committed Nov 29, 2023
1 parent 60d3ef1 commit f3db518
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tests/ResultTest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("Results cases",() => {
const cxScanConfig = new BaseTest();
it('Result Test Successful case', async () => {
const auth = new CxWrapper(cxScanConfig);
const cxCommandOutput: CxCommandOutput = await auth.scanList("");
const cxCommandOutput: CxCommandOutput = await auth.scanList("statuses=Completed");
const sampleId = cxCommandOutput.payload.pop().id;

auth.getResults(sampleId,"json","jsonList", ".").then(() => {
Expand All @@ -17,7 +17,7 @@ describe("Results cases",() => {

it('Result List Successful case', async () => {
const auth = new CxWrapper(cxScanConfig);
const cxCommandOutput: CxCommandOutput = await auth.scanList("");
const cxCommandOutput: CxCommandOutput = await auth.scanList("statuses=Completed");
console.log(JSON.stringify(cxCommandOutput));
const sampleId = cxCommandOutput.payload.pop().id;
const written = await auth.getResultsList(sampleId);
Expand All @@ -27,7 +27,7 @@ describe("Results cases",() => {

it('Result summary html file generation successful case', async () => {
const auth = new CxWrapper(cxScanConfig);
const cxCommandOutput: CxCommandOutput = await auth.scanList("");
const cxCommandOutput: CxCommandOutput = await auth.scanList("statuses=Completed");
const sampleId = cxCommandOutput.payload.pop().id;
await auth.getResults(sampleId,"summaryHTML","test", ".");
const file = await fileExists("./test.html");
Expand All @@ -36,7 +36,7 @@ describe("Results cases",() => {

it('Result summary html string successful case', async () => {
const auth = new CxWrapper(cxScanConfig);
const cxCommandOutput: CxCommandOutput = await auth.scanList("");
const cxCommandOutput: CxCommandOutput = await auth.scanList("statuses=Completed");
const sampleId = cxCommandOutput.payload.pop().id;
const written = await auth.getResultsSummary(sampleId);
expect(written.payload.length).toBeGreaterThan(0);
Expand Down

0 comments on commit f3db518

Please sign in to comment.