2026-08-10 15:36:53 +08:00
|
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
|
import { loadingListRoutes } from './routes'
|
|
|
|
|
|
|
|
|
|
describe('loading list routes', () => {
|
2026-10-08 11:16:58 +08:00
|
|
|
it('registers the confirmed list with its own read permission', () => {
|
2026-08-10 15:36:53 +08:00
|
|
|
expect(loadingListRoutes.map((route) => [route.path, route.meta.permission])).toEqual([
|
2026-10-08 13:59:20 +08:00
|
|
|
['loading-lists/:planId', 'platform:firstleg:loading-list:list'],
|
2026-10-08 11:16:58 +08:00
|
|
|
['loading-lists', 'platform:firstleg:loading-list:list'],
|
2026-08-10 15:36:53 +08:00
|
|
|
['loading-plans', 'platform:firstleg:preload:list'],
|
2026-08-13 11:57:44 +08:00
|
|
|
['loading-plans/:planId', 'platform:firstleg:preload:list'],
|
2026-08-10 15:36:53 +08:00
|
|
|
])
|
|
|
|
|
})
|
|
|
|
|
})
|