Files
hfb_sys/frontend/src/router/__tests__/mobileHost.spec.ts
T

11 lines
360 B
TypeScript

import { describe, expect, it } from 'vitest'
import { getMobilePath, getPcPath } from '../mobileHost'
describe('mobileHost path mapping', () => {
it('maps notification routes between PC and mobile views', () => {
expect(getMobilePath('/notifications')).toBe('/m/notifications')
expect(getPcPath('/m/notifications')).toBe('/notifications')
})
})