This commit is contained in:
2026-08-13 19:00:37 +08:00
parent 41038e1edd
commit 0f0ae612ca
18 changed files with 175 additions and 170 deletions
+1 -1
View File
@@ -95,13 +95,13 @@ describe('admin router access metadata', () => {
const expected = [
['notification-messages', '/notifications/messages', 'platform:notification:task:list'],
['notification-templates', '/notifications/templates', 'platform:notification:template:list'],
['my-notifications', '/notifications/mine', 'platform:notification:view'],
]
for (const [name, path, permission] of expected) {
const route = router.getRoutes().find((item) => item.name === name)
expect(route?.path).toBe(path)
expect(route?.meta.permission).toBe(permission)
}
expect(router.getRoutes().find((item) => item.name === 'my-notifications')).toBeUndefined()
})
it('redirects the removed enterprise review route to the protected customer list', () => {