forked from Lilly-Protocol/lily-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroutes.test.ts
More file actions
20 lines (17 loc) · 849 Bytes
/
Copy pathroutes.test.ts
File metadata and controls
20 lines (17 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { getRouteScaffold, routeScaffolds, staticSitePages } from './routes';
describe('route scaffolds', () => {
it('covers the planned contributor-facing route map', () => {
expect(routeScaffolds).toHaveLength(24);
expect(getRouteScaffold('landing').path).toBe('/');
expect(getRouteScaffold('agent-detail').path).toBe('/app/agents/[id]');
});
it('keeps only static pages in the sitemap list', () => {
expect(staticSitePages.some((page) => page.path === '/')).toBe(true);
expect(staticSitePages.some((page) => page.path === '/docs')).toBe(true);
expect(getRouteScaffold('agent-detail').includeInSitemap).not.toBe(true);
});
it('groups scaffold routes by section', () => {
expect(getRouteScaffold('signin').section).toBe('auth');
expect(getRouteScaffold('settings').section).toBe('dashboard');
});
});