mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
test(discord): type tracked target resolver mock
This commit is contained in:
@@ -67,7 +67,7 @@ vi.mock("../send.js", () => ({
|
||||
}));
|
||||
|
||||
const discordTargetMocks = vi.hoisted(() => ({
|
||||
resolveDiscordTargetChannelId: vi.fn(async (target: string) => ({
|
||||
resolveDiscordTargetChannelId: vi.fn(async (target: string, _opts?: unknown) => ({
|
||||
channelId: target === "user:u1" ? "dm-u1" : target,
|
||||
})),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user