XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEServerManager

【Java】我的世界XFE服务器管理器

公开
关注 0 Fork 0 Star 0
UTF-8
import { describe, expect, it } from 'vitest';
import { currentRoute } from './app-shell';

describe('hash routing', () => {
  it('selects known routes and falls back to overview', () => {
    location.hash = '#/claims';
    expect(currentRoute()).toBe('claims');
    location.hash = '#/not-a-route';
    expect(currentRoute()).toBe('overview');
  });
});