mirror of https://github.com/openclaw/openclaw.git
test(bluebubbles): trim webhook auth import cost
This commit is contained in:
parent
e5537f8b64
commit
cb661122e2
|
|
@ -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 }),
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
"defaultDurationMs": 1000,
|
||||
"files": {
|
||||
"extensions/bluebubbles/src/monitor.webhook-auth.test.ts": {
|
||||
"durationMs": 115900,
|
||||
"durationMs": 93900,
|
||||
"testCount": 19
|
||||
},
|
||||
"extensions/matrix/src/plugin-entry.runtime.test.ts": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue