test: clarify agents prune assertions · openclaw/openclaw@9e8a635
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -305,8 +305,8 @@ describe("agents helpers", () => {
|
305 | 305 | }; |
306 | 306 | |
307 | 307 | const result = pruneAgentConfig(cfg, "work"); |
308 | | -expect(result.config.agents?.list?.some((agent) => agent.id === "work")).toBe(false); |
309 | | -expect(result.config.agents?.list?.some((agent) => agent.id === "home")).toBe(true); |
| 308 | +expect(result.config.agents?.list?.map((agent) => agent.id)).not.toContain("work"); |
| 309 | +expect(result.config.agents?.list?.map((agent) => agent.id)).toContain("home"); |
310 | 310 | expect(result.config.bindings).toHaveLength(1); |
311 | 311 | expect(result.config.bindings?.[0]?.agentId).toBe("home"); |
312 | 312 | expect(result.config.tools?.agentToAgent?.allow).toEqual(["home"]); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。