优化
This commit is contained in:
@@ -23,7 +23,6 @@ describe('admin router access metadata', () => {
|
||||
it('protects phase-two inbound operations and master data with deployed permissions', () => {
|
||||
const expected = [
|
||||
['inbound-orders', '/inbounds', 'platform:firstleg:inbound:list'],
|
||||
['inbound-order-detail', '/inbounds/:inboundId', 'platform:firstleg:inbound:view'],
|
||||
['fba-carrier-rates', '/first-leg-pricing/carrier-rates', 'firstleg:fba-pricing:rate:view'],
|
||||
['locations', '/master-data/locations', 'platform:location:list'],
|
||||
['pallets', '/master-data/pallets', 'platform:pallet:list'],
|
||||
@@ -37,7 +36,7 @@ describe('admin router access metadata', () => {
|
||||
})
|
||||
|
||||
it('does not register removed duplicate pricing and FBA placeholder pages', () => {
|
||||
const removedRouteNames = ['fba-customer-rules', 'general-fba', 'general-voyage']
|
||||
const removedRouteNames = ['inbound-order-detail', 'fba-customer-rules', 'general-fba', 'general-voyage']
|
||||
|
||||
for (const name of removedRouteNames) {
|
||||
expect(router.getRoutes().some((route) => route.name === name)).toBe(false)
|
||||
|
||||
Reference in New Issue
Block a user