🤯 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 { resolveCommunityUserAvatarTarget } from './navigation';
describe('resolveCommunityUserAvatarTarget', () => {
it('routes workspace scope to the workspace community page even before an org namespace exists', () => {
expect(
resolveCommunityUserAvatarTarget({
isWorkspaceScope: true,
profileUsername: 'personal-user',
}),
).toBe('/marketplace/workspace');
});
it('routes personal scope to the user profile when available', () => {
expect(
resolveCommunityUserAvatarTarget({
isWorkspaceScope: false,
profileUsername: 'personal-user',
}),
).toBe('/marketplace/user/personal-user');
});
});