test: dedupe subagents focus mock reads · openclaw/openclaw@0b165f7
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -178,15 +178,15 @@ type SessionBindingBindInput = {
|
178 | 178 | }; |
179 | 179 | |
180 | 180 | function firstFocusTargetSessionParams(): FocusTargetSessionParams { |
181 | | -const firstCall = hoisted.resolveFocusTargetSessionMock.mock.calls.at(0); |
| 181 | +const firstCall = hoisted.resolveFocusTargetSessionMock.mock.calls[0]; |
182 | 182 | if (!firstCall) { |
183 | 183 | throw new Error("Expected focus target session call"); |
184 | 184 | } |
185 | 185 | return firstCall[0] as FocusTargetSessionParams; |
186 | 186 | } |
187 | 187 | |
188 | 188 | function firstSessionBindingBindInput(): SessionBindingBindInput { |
189 | | -const firstCall = hoisted.sessionBindingBindMock.mock.calls.at(0); |
| 189 | +const firstCall = hoisted.sessionBindingBindMock.mock.calls[0]; |
190 | 190 | if (!firstCall) { |
191 | 191 | throw new Error("Expected session binding bind call"); |
192 | 192 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。