test: count single-pass compaction summaries · openclaw/openclaw@baa1183
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -64,7 +64,7 @@ describe("compaction identifier-preservation instructions", () => {
|
64 | 64 | it("injects identifier-preservation guidance even without custom instructions", async () => { |
65 | 65 | await runSummary(2); |
66 | 66 | |
67 | | -expect(mockGenerateSummary).toHaveBeenCalled(); |
| 67 | +expect(mockGenerateSummary).toHaveBeenCalledTimes(1); |
68 | 68 | expect(firstSummaryInstructions()).toContain( |
69 | 69 | "Preserve all opaque identifiers exactly as written", |
70 | 70 | ); |
@@ -80,6 +80,7 @@ describe("compaction identifier-preservation instructions", () => {
|
80 | 80 | customInstructions: "Focus on release-impacting bugs.", |
81 | 81 | }); |
82 | 82 | |
| 83 | +expect(mockGenerateSummary).toHaveBeenCalledTimes(1); |
83 | 84 | expect(firstSummaryInstructions()).toContain( |
84 | 85 | "Preserve all opaque identifiers exactly as written", |
85 | 86 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。