优化
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user