Skip to content

Commit c81743d

Browse files
committed
updating wrapper tests
1 parent 0539e85 commit c81743d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tests/ChatTest.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ describe("Gpt Chat Cases", () => {
4141
it('Gpt Chat Failed case', async () => {
4242
const cxCommandOutput = await originalWrapper.chat(
4343
"APIKEY",
44-
"",
44+
"FILE",
4545
0,
4646
"SEVERITY",
4747
"VULNERABILITY",
4848
"INPUT",
49-
"CONVERSATION",
49+
"",
5050
"MODEL"
5151
);
52-
expect(cxCommandOutput.exitCode).toBe(1);
53-
expect(cxCommandOutput.status).toBe("open : no such file or directory\n");
52+
expect(cxCommandOutput.exitCode).toBe(0);
53+
expect(cxCommandOutput.payload[0].responses[0]).toBe("It seems that FILE is not available for AI Guided Remediation. Please ensure that you have opened the correct workspace or the relevant file.");
5454
});
5555
});

0 commit comments

Comments
 (0)