Refine desktop setup and remove bundled app center apps
This commit is contained in:
@@ -88,6 +88,19 @@ describe('channel credential normalization and duplicate checks', () => {
|
||||
expect(channels.feishu.accounts['agent-a'].appId).toBe('BoT-XyZ');
|
||||
});
|
||||
|
||||
it('registers the bundled openclaw-lark plugin when saving Feishu config', async () => {
|
||||
const { saveChannelConfig } = await import('@electron/utils/channel-config');
|
||||
|
||||
await saveChannelConfig('feishu', { appId: 'bot-lark', appSecret: 'secret' }, 'agent-a');
|
||||
|
||||
const config = await readOpenClawJson();
|
||||
const plugins = config.plugins as { allow?: string[]; entries?: Record<string, { enabled?: boolean }> };
|
||||
|
||||
expect(plugins.allow).toContain('openclaw-lark');
|
||||
expect(plugins.entries?.['openclaw-lark']?.enabled).toBe(true);
|
||||
expect(plugins.entries?.feishu?.enabled).toBe(false);
|
||||
});
|
||||
|
||||
it('emits warning logs when credential normalization (trim) occurs', async () => {
|
||||
const { saveChannelConfig } = await import('@electron/utils/channel-config');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user