This commit is contained in:
2026-08-12 18:49:54 +08:00
parent 13a856cef9
commit 71b3361361
9 changed files with 67 additions and 48 deletions
+5
View File
@@ -62,6 +62,10 @@ test('keeps only implemented navigation groups visible', () => {
children: ['企业资料', '企业成员', '角色管理', '菜单权限'],
},
{ title: '我的信息', children: undefined },
{
title: '消息中心',
children: ['我的消息'],
},
],
)
})
@@ -88,6 +92,7 @@ test('flattens visible leaves with unique paths', () => {
'/organization/roles',
'/organization/permissions',
'/account/profile',
'/notifications',
])
assert.equal(new Set(paths).size, paths.length)
assert.ok(leaves.every((leaf) => leaf.permission.trim().length > 0))