import { describe, expect, it } from "vitest"; import { mergeUserMemorySections } from "./user-profile-harvest"; import { mergeRelationshipContractIntoMemory, RELATIONSHIP_SECTION, } from "./user-relationship-contract"; describe("user-relationship-contract", () => { it("adds relationship section once", () => { const once = mergeRelationshipContractIntoMemory("# Space memory\n"); expect(once).toContain(RELATIONSHIP_SECTION); expect(once).toContain("Not yes-men"); expect(mergeRelationshipContractIntoMemory(once)).toBe(once); }); it("is included in the user memory merge", () => { const merged = mergeUserMemorySections("# Space memory\n"); expect(merged).toContain(RELATIONSHIP_SECTION); expect(merged).toContain("Never creepy"); }); });