test: use fixture for heartbeat boilerplate case

This commit is contained in:
Josh Lehman 2026-03-12 16:03:32 -07:00
parent d6b5891c2a
commit 2d826de3c9
No known key found for this signature in database
GPG Key ID: D141B425AC7F876B

View File

@ -1729,10 +1729,12 @@ describe("compaction-safeguard double-compaction guard", () => {
it("treats markup-wrapped heartbeat tokens as boilerplate", () => {
expect(
__testing.hasMeaningfulConversationContent({
role: "assistant",
content: "<b>HEARTBEAT_OK</b>",
} as AgentMessage),
__testing.hasMeaningfulConversationContent(
castAgentMessage({
role: "assistant",
content: "<b>HEARTBEAT_OK</b>",
}),
),
).toBe(false);
});
});