mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-21 10:44:47 +00:00
test: tighten hook correlation assertions
This commit is contained in:
@@ -24,7 +24,7 @@ describe("hook correlation fields", () => {
|
||||
await runner.runBeforeAgentStart({ prompt: "hello" }, TEST_PLUGIN_AGENT_CTX);
|
||||
|
||||
expect(handler).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ prompt: "hello", runId: "test-run-id" }),
|
||||
{ prompt: "hello", runId: "test-run-id" },
|
||||
TEST_PLUGIN_AGENT_CTX,
|
||||
);
|
||||
});
|
||||
@@ -48,7 +48,7 @@ describe("hook correlation fields", () => {
|
||||
);
|
||||
|
||||
expect(handler).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ messages: [], success: true, runId: "test-run-id" }),
|
||||
{ messages: [], success: true, runId: "test-run-id" },
|
||||
TEST_PLUGIN_AGENT_CTX,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user