This commit is contained in:
2026-08-03 18:15:41 +08:00
parent 370a3926d7
commit 1241d11c01
12 changed files with 637 additions and 44 deletions
+6
View File
@@ -30,6 +30,12 @@ describe('admin router access metadata', () => {
expect(route?.meta.permission).toBe('platform:counterparty:list')
})
it('protects the download center with its stable list permission', () => {
const route = router.getRoutes().find((item) => item.name === 'download-center')
expect(route?.path).toBe('/downloads')
expect(route?.meta.permission).toBe('platform:download:list')
})
it('protects enterprise reviews with the backend review menu permission', () => {
const route = router.getRoutes().find((item) => item.name === 'enterprise-reviews')