test: tighten agents list assertions · openclaw/openclaw@ba6dbff
steipete
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -80,7 +80,7 @@ describe("agentsListCommand", () => {
|
80 | 80 | |
81 | 81 | expect(buildProviderStatusIndexMock).not.toHaveBeenCalled(); |
82 | 82 | const summary = (runtime.json[0] as Array<Record<string, unknown>>)[0]; |
83 | | -expect(summary).toMatchObject({ id: "main" }); |
| 83 | +expect(summary?.id).toBe("main"); |
84 | 84 | expect(summary).not.toHaveProperty("routes"); |
85 | 85 | expect(summary).not.toHaveProperty("providers"); |
86 | 86 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。