test: tighten runtime plan tool assertions · openclaw/openclaw@41714c3
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -24,14 +24,16 @@ describe("AgentRuntimePlan tool diagnostics legacy fallback", () => {
|
24 | 24 | workspaceDir: "/tmp/openclaw-runtime-plan-tools", |
25 | 25 | }); |
26 | 26 | |
27 | | -expect(mocks.logProviderToolSchemaDiagnostics).toHaveBeenCalledWith( |
28 | | -expect.objectContaining({ |
29 | | - tools, |
30 | | -provider: "openai", |
31 | | -modelId: "gpt-5.4", |
32 | | -modelApi: "openai-responses", |
33 | | -workspaceDir: "/tmp/openclaw-runtime-plan-tools", |
34 | | -}), |
35 | | -); |
| 27 | +expect(mocks.logProviderToolSchemaDiagnostics).toHaveBeenCalledTimes(1); |
| 28 | +expect(mocks.logProviderToolSchemaDiagnostics.mock.calls[0]?.[0]).toEqual({ |
| 29 | + tools, |
| 30 | +provider: "openai", |
| 31 | +config: undefined, |
| 32 | +workspaceDir: "/tmp/openclaw-runtime-plan-tools", |
| 33 | +env: process.env, |
| 34 | +modelId: "gpt-5.4", |
| 35 | +modelApi: "openai-responses", |
| 36 | +model: undefined, |
| 37 | +}); |
36 | 38 | }); |
37 | 39 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。