Skip to content

Commit 05c8bf1

Browse files
committed
test(auth): cover manual refresh callback entry
1 parent 6de00ec commit 05c8bf1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/codex-manager-cli.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3730,6 +3730,9 @@ describe("codex manager cli commands", () => {
37303730
waitForCode: vi.fn(async () => ({ code: "oauth-code" })),
37313731
close: vi.fn(),
37323732
});
3733+
promptQuestionMock.mockResolvedValueOnce(
3734+
"http://127.0.0.1:1455/auth/callback?code=oauth-code&state=oauth-state",
3735+
);
37333736

37343737
const logSpy = vi.spyOn(console, "log").mockImplementation(() => {});
37353738
const { runCodexMultiAuthCli } = await import("../lib/codex-manager.js");

0 commit comments

Comments
 (0)