🤯 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 { resolveResourceSkeletonView } from './skeletonView';
describe('resolveResourceSkeletonView', () => {
it.each([
['/resource/drive', null, 'list'],
['/resource/drive/files', null, 'list'],
['/resource/drive/images', null, 'masonry'],
['/resource/drive/images', 'list', 'list'],
['/resource/works', null, 'works'],
['/team/resource/library', null, 'libraries'],
])('uses the settled view for %s', (pathname, requestedView, expected) => {
expect(resolveResourceSkeletonView(pathname, requestedView)).toBe(expected);
});
});