mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 12:56:01 -06:00
test: dedupe cron model override last mock read
This commit is contained in:
@@ -209,7 +209,8 @@ describe("runCronIsolatedAgentTurn model overrides", () => {
|
||||
mockTexts: ["done"],
|
||||
});
|
||||
|
||||
const callArgs = vi.mocked(runEmbeddedPiAgent).mock.calls.at(-1)?.[0];
|
||||
const calls = vi.mocked(runEmbeddedPiAgent).mock.calls;
|
||||
const callArgs = calls[calls.length - 1]?.[0];
|
||||
expect(callArgs?.thinkLevel).toBe("low");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user