We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1c8edf commit 92af0b6Copy full SHA for 92af0b6
src/tests/ScanTest.test.ts
@@ -7,9 +7,9 @@ describe("ScanCreate cases",() => {
7
let cxScanConfig = new BaseTest();
8
it('ScanList Successful case', async () => {
9
const auth = new CxWrapper(cxScanConfig);
10
- auth.scanList("").then((res)=>{
11
- expect(res.payload.length).toBeGreaterThan(0);
12
- });
+ const cxCommandOutput: CxCommandOutput = await auth.scanList("");
+ console.log(" Json object from scanList successful case: " + JSON.stringify(CxCommandOutput));
+ expect(cxCommandOutput.payload.length).toBeGreaterThan(0);
13
});
14
15
it('ScanCreate Successful case wait mode', async () => {
0 commit comments