import { Tool } from '@/prompts/plugin/tools'; import { pluginPrompts } from './index'; describe('pluginPrompts', () => { it('should generate plugin prompts with tools', () => { const tools: Tool[] = [ { name: 'tool1', identifier: 'id1', apis: [ { name: 'api1', desc: 'API 1', }, ], }, ]; const expected = ` API 1 `; expect(pluginPrompts({ tools })).toBe(expected); }); it('should generate plugin prompts without tools', () => { const tools: Tool[] = []; const expected = ` `; expect(pluginPrompts({ tools })).toBe(expected); }); });