test: tighten status summary assertions · openclaw/openclaw@05dac1e
steipete
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -182,9 +182,9 @@ describe("getStatusSummary", () => {
|
182 | 182 | it("does not trigger async context warmup while building status summaries", async () => { |
183 | 183 | await getStatusSummary(); |
184 | 184 | |
185 | | -expect(vi.mocked(statusSummaryRuntime.resolveContextTokensForModel)).toHaveBeenCalledWith( |
186 | | -expect.objectContaining({ allowAsyncLoad: false }), |
187 | | -); |
| 185 | +const contextCall = vi.mocked(statusSummaryRuntime.resolveContextTokensForModel).mock |
| 186 | +.calls[0]?.[0]; |
| 187 | +expect(contextCall?.allowAsyncLoad).toBe(false); |
188 | 188 | }); |
189 | 189 | |
190 | 190 | it("includes the selected agent runtime on recent sessions", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。