15 lines
423 B
TypeScript
15 lines
423 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import {
|
|
AUTHENTICATED_HOME_PATHNAME,
|
|
buildAuthenticatedHomeTarget,
|
|
} from '@/lib/home/default-route'
|
|
|
|
describe('authenticated home default route', () => {
|
|
it('uses /home as the only authenticated default pathname', () => {
|
|
expect(AUTHENTICATED_HOME_PATHNAME).toBe('/home')
|
|
expect(buildAuthenticatedHomeTarget()).toEqual({
|
|
pathname: '/home',
|
|
})
|
|
})
|
|
})
|