mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 08:00:59 +00:00
fix(coding-agent): update compaction test to match actual summary prefix
This commit is contained in:
parent
706554a5d3
commit
547dcf0e4a
1 changed files with 3 additions and 1 deletions
|
|
@ -192,7 +192,9 @@ describe("createSummaryMessage", () => {
|
||||||
it("should create user message with prefix", () => {
|
it("should create user message with prefix", () => {
|
||||||
const msg = createSummaryMessage("This is the summary");
|
const msg = createSummaryMessage("This is the summary");
|
||||||
expect(msg.role).toBe("user");
|
expect(msg.role).toBe("user");
|
||||||
expect(msg.content).toContain("Another language model worked on this task");
|
expect(msg.content).toContain(
|
||||||
|
"The conversation history before this point was compacted into the following summary:",
|
||||||
|
);
|
||||||
expect(msg.content).toContain("This is the summary");
|
expect(msg.content).toContain("This is the summary");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue