test: tighten harness registry assertion · openclaw/openclaw@0c49f5d
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -65,7 +65,9 @@ describe("agent harness registry", () => {
|
65 | 65 | const harness = makeHarness("custom"); |
66 | 66 | registerAgentHarness(harness, { ownerPluginId: "plugin-a" }); |
67 | 67 | |
68 | | -expect(getAgentHarness("custom")).toMatchObject({ id: "custom", pluginId: "plugin-a" }); |
| 68 | +const registeredHarness = getAgentHarness("custom"); |
| 69 | +expect(registeredHarness?.id).toBe("custom"); |
| 70 | +expect(registeredHarness?.pluginId).toBe("plugin-a"); |
69 | 71 | expect(getRegisteredAgentHarness("custom")?.ownerPluginId).toBe("plugin-a"); |
70 | 72 | expect(listAgentHarnessIds()).toEqual(["custom"]); |
71 | 73 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。