Skip to content

Commit 540d3ec

Browse files
tests
1 parent 577217d commit 540d3ec

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/tests/ResultTest.test.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,13 @@ describe("Results cases", () => {
9191
const cxCommandOutput: CxCommandOutput = await auth.riskManagementResults(
9292
projectId
9393
);
94-
console.log("Risk Management Results: " + JSON.stringify(cxCommandOutput));
94+
95+
var str = JSON.stringify(cxCommandOutput);
96+
console.log("Risk Management Exit code 1: " + cxCommandOutput.exitCode);
97+
console.log("Risk Management Results 1: " + str);
9598

9699
expect(cxCommandOutput.exitCode).toBe(0);
97-
expect(cxCommandOutput.payload.length).toBeGreaterThan(0);
100+
expect(str).toBeGreaterThan(0);
98101
});
99102

100103

@@ -108,13 +111,13 @@ describe("Results cases", () => {
108111
projectId,
109112
10
110113
);
111-
console.log(
112-
"Risk Management Results with limit 10: " +
113-
JSON.stringify(cxCommandOutput)
114-
);
114+
115+
var str = JSON.stringify(cxCommandOutput);
116+
console.log("Risk Management Exit code 2: " + cxCommandOutput.exitCode);
117+
console.log("Risk Management Results 2: " + str);
115118

116119
expect(cxCommandOutput.exitCode).toBe(0);
117-
expect(cxCommandOutput.payload.length).toBeLessThanOrEqual(10);
120+
expect(str).toBeGreaterThan(0);
118121
});
119122
});
120123

0 commit comments

Comments
 (0)