Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 03:37 UTC
| 1 | import { describe, expect, test } from 'bun:test'; |
| 2 | |
| 3 | import { replaceRepoBrowserMarkdown } from '../../lib/repo-browser-markdown'; |
| 4 | |
| 5 | describe('replaceRepoBrowserMarkdown', () => { |
| 6 | test('emits source-aware RepoBrowser availability notices', () => { |
| 7 | const markdown = replaceRepoBrowserMarkdown(` |
| 8 | <RepoBrowser /> |
| 9 | <RepoBrowser source="local-workbench" /> |
| 10 | <RepoBrowser source="standup" /> |
| 11 | <RepoBrowser source="imessage" /> |
| 12 | <RepoBrowser source="unknown" /> |
| 13 | `); |
| 14 | |
| 15 | expect(markdown).toContain('The Slack bot browser is a documentation snapshot'); |
| 16 | expect(markdown).toContain('The local PR reviewer browser is a documentation snapshot'); |
| 17 | expect(markdown).toContain('The standup bot browser is a documentation snapshot'); |
| 18 | expect(markdown).toContain( |
| 19 | '[platform-imessage](https://github.com/ComposioHQ/platform-imessage)', |
| 20 | ); |
| 21 | expect(markdown).toContain( |
| 22 | 'This code browser is a documentation snapshot; a public repository is not available.', |
| 23 | ); |
| 24 | expect(markdown).not.toContain('composio-slack-bot'); |
| 25 | }); |
| 26 | }); |