diff --git a/src/commands/auth-choice.apply.minimax.test.ts b/src/commands/auth-choice.apply.minimax.test.ts index 78ae5d5fa..533344c66 100644 --- a/src/commands/auth-choice.apply.minimax.test.ts +++ b/src/commands/auth-choice.apply.minimax.test.ts @@ -44,7 +44,7 @@ describe("applyAuthChoiceMiniMax", () => { async function readAuthProfiles(agentDir: string) { return await readAuthProfilesForAgent<{ - profiles?: Record; + profiles?: Record; }>(agentDir); } @@ -154,7 +154,10 @@ describe("applyAuthChoiceMiniMax", () => { expect(confirm).toHaveBeenCalled(); const parsed = await readAuthProfiles(agentDir); - expect(parsed.profiles?.["minimax-cn:default"]?.key).toBe("mm-env-token"); + expect(parsed.profiles?.["minimax-cn:default"]?.keyRef).toEqual({ + source: "env", + id: "MINIMAX_API_KEY", + }); }); it("uses minimax-api-lightning default model", async () => {