test: tighten hook correlation assertions

This commit is contained in:
Shakker
2026-05-11 05:46:49 +01:00
parent bfd540bcdf
commit 173c6cdabc

View File

@@ -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,
);
});