test: dedupe memory dreaming mock read

This commit is contained in:
Peter Steinberger
2026-05-13 05:25:01 +01:00
parent 8560bd845c
commit d643d64194

View File

@@ -2249,7 +2249,7 @@ describe("short-term dreaming trigger", () => {
const dreamsText = await fs.readFile(path.join(workspaceDir, "DREAMS.md"), "utf-8");
expect(dreamsText).toContain("A diary entry.");
});
expect(subagent.run.mock.calls.at(0)?.[0]?.model).toBe("anthropic/claude-sonnet-4-6");
expect(subagent.run.mock.calls[0]?.[0]?.model).toBe("anthropic/claude-sonnet-4-6");
});
it("skips dreaming promotion cleanly when limit is zero", async () => {