e9c3dc1120
保留 SpacetimeDB 历史表、迁移白名单与旧业务源码 切换前端 active 入口并解除旧创作页面和路由编译链 移除旧后端路由、worker 与纯业务 crate 依赖 收敛 SpacetimeDB 模块为历史数据壳 同步 Nginx、Pingora、验证门禁与架构文档
23 lines
821 B
TypeScript
23 lines
821 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
import {
|
|
matchAppRoute,
|
|
shouldUseRecommendationRouteLoading,
|
|
} from './activeAppRoutes';
|
|
|
|
describe('matchAppRoute', () => {
|
|
it('routes every path through the public platform shell', () => {
|
|
expect(matchAppRoute('/')).toEqual({ kind: 'platform' });
|
|
expect(matchAppRoute('/project')).toEqual({ kind: 'platform' });
|
|
expect(matchAppRoute('/editor/canvas')).toEqual({ kind: 'platform' });
|
|
expect(matchAppRoute('/creation/rpg')).toEqual({ kind: 'platform' });
|
|
expect(matchAppRoute('/runtime/puzzle')).toEqual({ kind: 'platform' });
|
|
});
|
|
});
|
|
|
|
describe('shouldUseRecommendationRouteLoading', () => {
|
|
it('does not expose the retired recommendation runtime loading state', () => {
|
|
expect(shouldUseRecommendationRouteLoading()).toBe(false);
|
|
});
|
|
});
|