mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 20:35:39 -06:00
test: dedupe outbound channel mock read
This commit is contained in:
@@ -171,7 +171,7 @@ describe("sendMessage channel normalization", () => {
|
||||
},
|
||||
assertDeps: (deps: { localchat?: ReturnType<typeof vi.fn> }) => {
|
||||
expect(deps.localchat).toHaveBeenCalledTimes(1);
|
||||
const [to, text, options] = deps.localchat?.mock.calls.at(0) ?? [];
|
||||
const [to, text, options] = deps.localchat?.mock.calls[0] ?? [];
|
||||
expect(to).toBe("someone@example.com");
|
||||
expect(text).toBe("hi");
|
||||
expect(typeof options).toBe("object");
|
||||
|
||||
Reference in New Issue
Block a user