fix ut
This commit is contained in:
@@ -163,7 +163,7 @@ describe('agent config lifecycle', () => {
|
||||
const infoSpy = vi.spyOn(console, 'info').mockImplementation(() => {});
|
||||
const { deleteAgentConfig } = await import('@electron/utils/agent-config');
|
||||
|
||||
const snapshot = await deleteAgentConfig('test2');
|
||||
const { snapshot } = await deleteAgentConfig('test2');
|
||||
|
||||
expect(snapshot.agents.map((agent) => agent.id)).toEqual(['main', 'test3']);
|
||||
expect(snapshot.channelOwners.feishu).toBe('main');
|
||||
|
||||
Reference in New Issue
Block a user