test: tighten harness registry assertion

This commit is contained in:
Peter Steinberger
2026-05-09 13:53:23 +01:00
parent 9ac8909b15
commit 0c49f5dcfe

View File

@@ -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"]);
});