优化
This commit is contained in:
@@ -63,11 +63,10 @@ describe('admin router access metadata', () => {
|
||||
expect(detailIndex).toBeGreaterThan(globalIndex)
|
||||
})
|
||||
|
||||
it('registers phase-three service center routes with their stable permissions', () => {
|
||||
it('registers the retained phase-three service center routes with stable permissions', () => {
|
||||
const expected = [
|
||||
['port-schedules', '/port-schedules', 'platform:firstleg:port-schedule:list'],
|
||||
['customs-cases', '/customs', 'platform:firstleg:customs:list'],
|
||||
['outbound-dispatches', '/outbound-dispatches', 'platform:firstleg:outbound-dispatch:list'],
|
||||
['ocean-bookings', '/ocean-bookings', 'platform:firstleg:ocean-booking:list'],
|
||||
['trucking', '/trucking', 'platform:firstleg:truck-appointment:list'],
|
||||
]
|
||||
|
||||
for (const [name, path, permission] of expected) {
|
||||
@@ -75,6 +74,9 @@ describe('admin router access metadata', () => {
|
||||
expect(route?.path).toBe(path)
|
||||
expect(route?.meta.permission).toBe(permission)
|
||||
}
|
||||
|
||||
expect(router.getRoutes().find((item) => item.name === 'port-schedules')).toBeUndefined()
|
||||
expect(router.getRoutes().find((item) => item.name === 'outbound-dispatches')).toBeUndefined()
|
||||
})
|
||||
|
||||
it('protects counterparty records with a stable master-data permission', () => {
|
||||
|
||||
Reference in New Issue
Block a user