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');
});
});
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');
});
});