mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 19:40:24 +00:00
chore(tsgo/format): fix CI errors
This commit is contained in:
@@ -9,7 +9,9 @@ vi.mock("../../config/sessions.js", () => ({
|
||||
}));
|
||||
|
||||
vi.mock("../../infra/outbound/channel-selection.js", () => ({
|
||||
resolveMessageChannelSelection: vi.fn().mockResolvedValue({ channel: "telegram" }),
|
||||
resolveMessageChannelSelection: vi
|
||||
.fn()
|
||||
.mockResolvedValue({ channel: "telegram", configured: ["telegram"] }),
|
||||
}));
|
||||
|
||||
vi.mock("../../pairing/pairing-store.js", () => ({
|
||||
@@ -261,7 +263,10 @@ describe("resolveDeliveryTarget", () => {
|
||||
|
||||
it("uses channel selection result when no previous session target exists", async () => {
|
||||
setMainSessionEntry(undefined);
|
||||
vi.mocked(resolveMessageChannelSelection).mockResolvedValueOnce({ channel: "telegram" });
|
||||
vi.mocked(resolveMessageChannelSelection).mockResolvedValueOnce({
|
||||
channel: "telegram",
|
||||
configured: ["telegram"],
|
||||
});
|
||||
|
||||
const result = await resolveForAgent({
|
||||
cfg: makeCfg({ bindings: [] }),
|
||||
|
||||
Reference in New Issue
Block a user