test: tighten core test mock fixtures · openclaw/openclaw@06b8cd4
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|
@@ -467,6 +467,7 @@ describe("appendExactAssistantMessageToSessionTranscript - redaction", () => {
|
467 | 467 | cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 }, |
468 | 468 | }, |
469 | 469 | stopReason: "stop", |
| 470 | +timestamp: Date.now(), |
470 | 471 | }, |
471 | 472 | }); |
472 | 473 | const deduped = await appendAssistantMessageToSessionTranscript({ |
|
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -49,7 +49,7 @@ let resolveProviderSetupFlowContributions: ResolveProviderSetupFlowContributions
|
49 | 49 | let resolveProviderModelPickerFlowContributions: ResolveProviderModelPickerFlowContributions; |
50 | 50 | |
51 | 51 | function requireFirstMockCall(mock: { mock: { calls: unknown[][] } }, label: string): unknown[] { |
52 | | -const call = mock.mock.calls.at(0); |
| 52 | +const call = mock.mock.calls[0]; |
53 | 53 | if (!call) { |
54 | 54 | throw new Error(`expected ${label} call`); |
55 | 55 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。