Skip to content

Commit ee5e41a

Browse files
author
cx-Margarita-LevitM
committed
Fix test
1 parent f0c7898 commit ee5e41a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/main/wrapper/CxCommandOutput.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ export class CxCommandOutput {
22
exitCode: number;
33
payload: any[];
44
status: string;
5+
stderr: string;
56
}

src/main/wrapper/ExecutionService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ export class ExecutionService {
194194
cxCommandOutput.exitCode = code;
195195
if (stderr) {
196196
cxCommandOutput.status = stderr;
197+
cxCommandOutput.stderr = stderr;
197198
}
198199
if (stdout) {
199200
const stdoutSplit = stdout.split('\n');

src/tests/LearnMoreDescriptions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ describe("LearnMoreDescriptions cases",() => {
1616
const auth = new CxWrapper(cxScanConfig);
1717
const data = await auth.learnMore("")
1818
const cxCommandOutput: CxCommandOutput = data;
19-
expect(cxCommandOutput.status).toBe("Value of query-id is invalid");
19+
expect(cxCommandOutput.stderr).toBe("Value of query-id is invalid");
2020
})
2121
})

0 commit comments

Comments
 (0)