mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 07:20:23 +00:00
test(bluebubbles): trim webhook auth import cost
This commit is contained in:
@@ -50,13 +50,12 @@ vi.mock("./attachments.js", () => ({
|
||||
}),
|
||||
}));
|
||||
|
||||
vi.mock("./reactions.js", async () => {
|
||||
const actual = await vi.importActual<typeof import("./reactions.js")>("./reactions.js");
|
||||
return {
|
||||
...actual,
|
||||
sendBlueBubblesReaction: vi.fn().mockResolvedValue(undefined),
|
||||
};
|
||||
});
|
||||
vi.mock("./reactions.js", () => ({
|
||||
normalizeBlueBubblesReactionInput: vi.fn((emoji: string, remove?: boolean) =>
|
||||
remove ? `-${emoji}` : emoji,
|
||||
),
|
||||
sendBlueBubblesReaction: vi.fn().mockResolvedValue(undefined),
|
||||
}));
|
||||
|
||||
vi.mock("./history.js", () => ({
|
||||
fetchBlueBubblesHistory: vi.fn().mockResolvedValue({ entries: [], resolved: true }),
|
||||
|
||||
Reference in New Issue
Block a user