优化
This commit is contained in:
@@ -10,6 +10,7 @@ describe('overseas warehouse routes', () => {
|
||||
['overseas-warehouse/inbound-orders', permission.inboundOrderList],
|
||||
['overseas-warehouse/inbound-orders/:orderId', permission.inboundOrderList],
|
||||
['overseas-warehouse/dispatches', permission.dispatchList],
|
||||
['overseas-warehouse/dispatches/:dispatchNo', permission.dispatchList],
|
||||
['overseas-warehouse/inventory', permission.inventoryList],
|
||||
['overseas-warehouse/inventory-transactions', permission.inventoryList],
|
||||
['overseas-warehouse/inventory/:inventoryId', permission.inventoryList],
|
||||
@@ -22,7 +23,7 @@ describe('overseas warehouse routes', () => {
|
||||
|
||||
it('keeps all details as formal parameterized pages', () => {
|
||||
const details = overseasWarehouseRoutes.filter((route) => route.path.includes('/:'))
|
||||
expect(details).toHaveLength(5)
|
||||
expect(details).toHaveLength(6)
|
||||
expect(details.every((route) => route.meta.showPageHeading === false)).toBe(true)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user