mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 03:50:23 +00:00
test: centralize channel catalog contracts
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
import {
|
||||
describeBundledMetadataOnlyChannelCatalogContract,
|
||||
describeChannelCatalogEntryContract,
|
||||
describeOfficialFallbackChannelCatalogContract,
|
||||
} from "../../../test/helpers/channels/channel-catalog-contract.js";
|
||||
|
||||
describeChannelCatalogEntryContract({
|
||||
channelId: "msteams",
|
||||
npmSpec: "@openclaw/msteams",
|
||||
alias: "teams",
|
||||
});
|
||||
|
||||
const whatsappMeta = {
|
||||
id: "whatsapp",
|
||||
label: "WhatsApp",
|
||||
selectionLabel: "WhatsApp (QR link)",
|
||||
detailLabel: "WhatsApp Web",
|
||||
docsPath: "/channels/whatsapp",
|
||||
blurb: "works with your own number; recommend a separate phone + eSIM.",
|
||||
};
|
||||
|
||||
describeBundledMetadataOnlyChannelCatalogContract({
|
||||
pluginId: "whatsapp",
|
||||
packageName: "@openclaw/whatsapp",
|
||||
npmSpec: "@openclaw/whatsapp",
|
||||
meta: whatsappMeta,
|
||||
defaultChoice: "npm",
|
||||
});
|
||||
|
||||
describeOfficialFallbackChannelCatalogContract({
|
||||
channelId: "whatsapp",
|
||||
npmSpec: "@openclaw/whatsapp",
|
||||
meta: whatsappMeta,
|
||||
packageName: "@openclaw/whatsapp",
|
||||
pluginId: "whatsapp",
|
||||
externalNpmSpec: "@vendor/whatsapp-fork",
|
||||
externalLabel: "WhatsApp Fork",
|
||||
});
|
||||
Reference in New Issue
Block a user