mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 09:10:20 +00:00
refactor(test): dedupe gateway and web scaffolding
This commit is contained in:
@@ -72,6 +72,21 @@ export const createMSTeamsTestPluginBase = (): Pick<
|
||||
};
|
||||
};
|
||||
|
||||
export const createMSTeamsTestPlugin = (params?: {
|
||||
aliases?: string[];
|
||||
outbound?: ChannelOutboundAdapter;
|
||||
}): ChannelPlugin => {
|
||||
const base = createMSTeamsTestPluginBase();
|
||||
return {
|
||||
...base,
|
||||
meta: {
|
||||
...base.meta,
|
||||
...(params?.aliases ? { aliases: params.aliases } : {}),
|
||||
},
|
||||
...(params?.outbound ? { outbound: params.outbound } : {}),
|
||||
};
|
||||
};
|
||||
|
||||
export const createOutboundTestPlugin = (params: {
|
||||
id: ChannelId;
|
||||
outbound: ChannelOutboundAdapter;
|
||||
|
||||
Reference in New Issue
Block a user