mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
fix(channels): keep test facades vitest-safe
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { createWhatsAppPollFixture, expectWhatsAppPollSent } from "../test-api.js";
|
||||
import { createWhatsAppOutboundBase } from "./outbound-base.js";
|
||||
import { createWhatsAppPollFixture, expectWhatsAppPollSent } from "./outbound-test-support.js";
|
||||
|
||||
describe("createWhatsAppOutboundBase", () => {
|
||||
it("exposes the provided chunker", () => {
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
export { whatsappOutbound } from "./src/outbound-adapter.js";
|
||||
export { resolveWhatsAppRuntimeGroupPolicy } from "./src/runtime-group-policy.js";
|
||||
export { createWhatsAppPollFixture, expectWhatsAppPollSent } from "./src/outbound-test-support.js";
|
||||
|
||||
@@ -110,7 +110,12 @@ export const zaloDmPolicy: ChannelSetupDmPolicy = {
|
||||
},
|
||||
};
|
||||
},
|
||||
promptAllowFrom: promptZaloAllowFrom,
|
||||
promptAllowFrom: async ({ cfg, prompter, accountId }) =>
|
||||
promptZaloAllowFrom({
|
||||
cfg,
|
||||
prompter,
|
||||
accountId: accountId ?? resolveDefaultZaloAccountId(cfg),
|
||||
}),
|
||||
};
|
||||
|
||||
export function createZaloSetupWizardProxy(
|
||||
|
||||
Reference in New Issue
Block a user