mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 00:30:42 +00:00
test: tighten fallback json assertion
This commit is contained in:
@@ -402,7 +402,8 @@ describe("agentCliCommand", () => {
|
||||
);
|
||||
expect(loggingState.forceConsoleToStderr).toBe(true);
|
||||
expect(jsonRuntime.log).toHaveBeenCalledTimes(1);
|
||||
const payload = JSON.parse(String(jsonRuntime.log.mock.calls[0]?.[0]));
|
||||
const jsonPayload = requireFirstCallArg(jsonRuntime.log, "json runtime log");
|
||||
const payload = JSON.parse(String(jsonPayload));
|
||||
expect(payload).toMatchObject({
|
||||
payloads: [{ text: "local" }],
|
||||
meta: {
|
||||
|
||||
Reference in New Issue
Block a user