test: dedupe outbound channel mock read · openclaw/openclaw@560679a
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -171,7 +171,7 @@ describe("sendMessage channel normalization", () => {
|
171 | 171 | }, |
172 | 172 | assertDeps: (deps: { localchat?: ReturnType<typeof vi.fn> }) => { |
173 | 173 | expect(deps.localchat).toHaveBeenCalledTimes(1); |
174 | | -const [to, text, options] = deps.localchat?.mock.calls.at(0) ?? []; |
| 174 | +const [to, text, options] = deps.localchat?.mock.calls[0] ?? []; |
175 | 175 | expect(to).toBe("someone@example.com"); |
176 | 176 | expect(text).toBe("hi"); |
177 | 177 | expect(typeof options).toBe("object"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。