Skip to content

Commit 7facf76

Browse files
committed
Fix test
1 parent bfb2147 commit 7facf76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/__tests__/CodexACPAgent/CodexAcpClient.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
150150
const mockFixture = createCodexMockTestFixture();
151151
const codexAcpAgent = mockFixture.getCodexAcpAgent();
152152

153-
const logoutSpy = vi.spyOn(codexAcpAgent, "unstable_logout").mockResolvedValue({});
153+
const logoutSpy = vi.spyOn(codexAcpAgent, "unstable_logout");
154154

155155
await expect(codexAcpAgent.extMethod("authentication/logout", {})).resolves.toEqual({});
156156
expect(logoutSpy).toHaveBeenCalledWith({});
@@ -575,7 +575,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
575575

576576
const sessionState: SessionState = createTestSessionState();
577577

578-
const logoutSpy = vi.spyOn(mockFixture.getCodexAcpClient(), "logout").mockResolvedValue({});
578+
const logoutSpy = vi.spyOn(mockFixture.getCodexAcpClient(), "logout");
579579

580580
// @ts-expect-error - exercising private helper
581581
const handled = await codexAcpAgent.availableCommands.handleCommand({ name: "logout", input: null }, sessionState);

0 commit comments

Comments
 (0)