Fix test: getLeafId returns null for empty session, not empty string

This commit is contained in:
Mario Zechner 2025-12-29 20:30:54 +01:00
parent 31c5cd38d1
commit aee61b1a6b

View file

@ -106,7 +106,7 @@ describe("SessionManager append and tree traversal", () => {
it("leaf pointer advances after each append", () => {
const session = SessionManager.inMemory();
expect(session.getLeafId()).toBe("");
expect(session.getLeafId()).toBeNull();
const id1 = session.appendMessage(userMsg("1"));
expect(session.getLeafId()).toBe(id1);