mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 06:40:42 +00:00
test: tighten harness registry assertion
This commit is contained in:
@@ -65,7 +65,9 @@ describe("agent harness registry", () => {
|
||||
const harness = makeHarness("custom");
|
||||
registerAgentHarness(harness, { ownerPluginId: "plugin-a" });
|
||||
|
||||
expect(getAgentHarness("custom")).toMatchObject({ id: "custom", pluginId: "plugin-a" });
|
||||
const registeredHarness = getAgentHarness("custom");
|
||||
expect(registeredHarness?.id).toBe("custom");
|
||||
expect(registeredHarness?.pluginId).toBe("plugin-a");
|
||||
expect(getRegisteredAgentHarness("custom")?.ownerPluginId).toBe("plugin-a");
|
||||
expect(listAgentHarnessIds()).toEqual(["custom"]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user