优化
This commit is contained in:
@@ -74,7 +74,7 @@ describe('admin router access metadata', () => {
|
||||
expect(resolved.matched.some((record) => record.meta.requiresAuth)).toBe(true)
|
||||
})
|
||||
|
||||
it('keeps visible navigation paths and permissions aligned with routes', () => {
|
||||
it('keeps every registered navigation path and permission aligned with routes', () => {
|
||||
for (const item of getNavigationLeaves(adminNavigation)) {
|
||||
const resolved = router.resolve(item.path)
|
||||
const pageRoute = resolved.matched.at(-1)
|
||||
|
||||
Reference in New Issue
Block a user