test: dedupe reply media mock reads · openclaw/openclaw@6b0b29f
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -54,7 +54,7 @@ function expectOutboundAttachmentCall(
|
54 | 54 | mediaUrl: string, |
55 | 55 | mediaMaxBytes: number, |
56 | 56 | ): Record<string, unknown> { |
57 | | -const call = resolveOutboundAttachmentFromUrl.mock.calls.at(index) as unknown[] | undefined; |
| 57 | +const call = resolveOutboundAttachmentFromUrl.mock.calls[index] as unknown[] | undefined; |
58 | 58 | if (!call) { |
59 | 59 | throw new Error(`missing outbound attachment call ${index + 1}`); |
60 | 60 | } |
@@ -64,7 +64,7 @@ function expectOutboundAttachmentCall(
|
64 | 64 | } |
65 | 65 | |
66 | 66 | function expectAgentScopedMediaAccessCall(): Record<string, unknown> { |
67 | | -const call = resolveAgentScopedOutboundMediaAccess.mock.calls.at(0) as unknown[] | undefined; |
| 67 | +const call = resolveAgentScopedOutboundMediaAccess.mock.calls[0] as unknown[] | undefined; |
68 | 68 | if (!call) { |
69 | 69 | throw new Error("missing agent scoped media access call"); |
70 | 70 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。