test: tighten hook correlation assertions · openclaw/openclaw@173c6cd
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ describe("hook correlation fields", () => {
|
24 | 24 | await runner.runBeforeAgentStart({ prompt: "hello" }, TEST_PLUGIN_AGENT_CTX); |
25 | 25 | |
26 | 26 | expect(handler).toHaveBeenCalledWith( |
27 | | -expect.objectContaining({ prompt: "hello", runId: "test-run-id" }), |
| 27 | +{ prompt: "hello", runId: "test-run-id" }, |
28 | 28 | TEST_PLUGIN_AGENT_CTX, |
29 | 29 | ); |
30 | 30 | }); |
@@ -48,7 +48,7 @@ describe("hook correlation fields", () => {
|
48 | 48 | ); |
49 | 49 | |
50 | 50 | expect(handler).toHaveBeenCalledWith( |
51 | | -expect.objectContaining({ messages: [], success: true, runId: "test-run-id" }), |
| 51 | +{ messages: [], success: true, runId: "test-run-id" }, |
52 | 52 | TEST_PLUGIN_AGENT_CTX, |
53 | 53 | ); |
54 | 54 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。