🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { describe, expect, it } from 'vitest';
import { githubOwner } from './index';
describe('githubOwner', () => {
it('reads the owner of every form an environment names its repository in', () => {
expect(githubOwner('https://github.com/lobehub-biz/agent-mail')).toBe('lobehub-biz');
expect(githubOwner('[email protected]:lobehub/lobehub.git')).toBe('lobehub');
expect(githubOwner('lobehub/lobe-tts')).toBe('lobehub');
});
it('names no owner for anything else', () => {
expect(githubOwner(undefined)).toBeUndefined();
expect(githubOwner('https://gitlab.com/a/b')).toBeUndefined();
expect(githubOwner('agent-mail')).toBeUndefined();
});
});