fix: remote test

This commit is contained in:
Nate 2025-08-08 11:43:28 -04:00
parent 0adfea4a0d
commit 8729cc4e62

View file

@ -107,23 +107,7 @@ describe("remote command", () => {
);
});
it("should display idempotency key in console when provided", async () => {
const testIdempotencyKey = "test-key-456";
await remote("test prompt", { idempotencyKey: testIdempotencyKey });
expect(mockConsoleInfo).toHaveBeenCalledWith(
expect.stringContaining(`Using idempotency key: ${testIdempotencyKey}`)
);
});
it("should not display idempotency key message when not provided", async () => {
await remote("test prompt", {});
expect(mockConsoleInfo).not.toHaveBeenCalledWith(
expect.stringContaining("Using idempotency key:")
);
});
it("should work with direct URL connection and idempotency key", async () => {
const testUrl = "ws://direct-url.com";