mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-20 21:23:23 +00:00
Tests: align extension approval startup seams
This commit is contained in:
@@ -28,6 +28,24 @@ vi.mock("./probe.js", () => {
|
||||
};
|
||||
});
|
||||
|
||||
vi.mock("./channel.runtime.js", () => ({
|
||||
probeZaloAccount: hoisted.probeZalo,
|
||||
startZaloGatewayAccount: async (ctx: {
|
||||
account: ResolvedZaloAccount;
|
||||
abortSignal: AbortSignal;
|
||||
setStatus: (patch: Partial<ResolvedZaloAccount>) => void;
|
||||
}) => {
|
||||
await hoisted.probeZalo();
|
||||
ctx.setStatus({ accountId: ctx.account.accountId });
|
||||
return await hoisted.monitorZaloProvider({
|
||||
token: ctx.account.token,
|
||||
account: ctx.account,
|
||||
abortSignal: ctx.abortSignal,
|
||||
useWebhook: false,
|
||||
});
|
||||
},
|
||||
}));
|
||||
|
||||
import { zaloPlugin } from "./channel.js";
|
||||
|
||||
function buildAccount(): ResolvedZaloAccount {
|
||||
|
||||
Reference in New Issue
Block a user