mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:09:34 +00:00
test: dedupe repeated test fixtures and assertions
This commit is contained in:
@@ -51,6 +51,27 @@ export const createChannelTestPluginBase = (params: {
|
||||
},
|
||||
});
|
||||
|
||||
export const createMSTeamsTestPluginBase = (): Pick<
|
||||
ChannelPlugin,
|
||||
"id" | "meta" | "capabilities" | "config"
|
||||
> => {
|
||||
const base = createChannelTestPluginBase({
|
||||
id: "msteams",
|
||||
label: "Microsoft Teams",
|
||||
docsPath: "/channels/msteams",
|
||||
config: { listAccountIds: () => [], resolveAccount: () => ({}) },
|
||||
});
|
||||
return {
|
||||
...base,
|
||||
meta: {
|
||||
...base.meta,
|
||||
selectionLabel: "Microsoft Teams (Bot Framework)",
|
||||
blurb: "Bot Framework; enterprise support.",
|
||||
aliases: ["teams"],
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
export const createOutboundTestPlugin = (params: {
|
||||
id: ChannelId;
|
||||
outbound: ChannelOutboundAdapter;
|
||||
|
||||
Reference in New Issue
Block a user