diff --git a/src/plugins/hooks.correlation.test.ts b/src/plugins/hooks.correlation.test.ts index b769a754a97..ba1e60fbd8b 100644 --- a/src/plugins/hooks.correlation.test.ts +++ b/src/plugins/hooks.correlation.test.ts @@ -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, ); });