mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-21 19:15:47 +00:00
test: dedupe cron model override last mock read
This commit is contained in:
parent
cf11d16b43
commit
edce338e32
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue