mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 04:47:03 -06:00
23 lines
726 B
TypeScript
23 lines
726 B
TypeScript
// Whatsapp tests cover index plugin behavior.
|
|
import { assertBundledChannelEntries } from "openclaw/plugin-sdk/channel-test-helpers";
|
|
import { describe, expect, it } from "vitest";
|
|
import { whatsappPlugin } from "./channel-plugin-api.js";
|
|
import entry from "./index.js";
|
|
import setupEntry from "./setup-entry.js";
|
|
|
|
describe("whatsapp bundled entries", () => {
|
|
assertBundledChannelEntries({
|
|
entry,
|
|
expectedId: "whatsapp",
|
|
expectedName: "WhatsApp",
|
|
setupEntry,
|
|
});
|
|
|
|
it("declares account config as channel-restart reload metadata", () => {
|
|
expect(whatsappPlugin.reload).toEqual({
|
|
configPrefixes: ["web", "channels.whatsapp.accounts"],
|
|
noopPrefixes: ["channels.whatsapp"],
|
|
});
|
|
});
|
|
});
|