mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 11:34:59 +00:00
chore: Fix types in tests 41/N.
This commit is contained in:
@@ -70,8 +70,11 @@ function mockGatewaySuccessReply(text = "hello") {
|
||||
|
||||
function mockLocalAgentReply(text = "local") {
|
||||
vi.mocked(agentCommand).mockImplementationOnce(async (_opts, rt) => {
|
||||
rt.log?.(text);
|
||||
return { payloads: [{ text }], meta: { stub: true } };
|
||||
rt?.log?.(text);
|
||||
return {
|
||||
payloads: [{ text }],
|
||||
meta: { durationMs: 1, agentMeta: { sessionId: "s", provider: "p", model: "m" } },
|
||||
} as unknown as Awaited<ReturnType<typeof agentCommand>>;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user