This commit is contained in:
2026-08-13 11:57:44 +08:00
parent 7beca3f985
commit 835ac0ad12
87 changed files with 3721 additions and 295 deletions
+5 -2
View File
@@ -19,15 +19,18 @@ describe('finance five-page delivery contract', () => {
['finance/settlement-payables', '结算单应付'],
] as const
it('registers exactly the five formal routes and menu entries', () => {
it('registers the five menu routes plus hidden detail routes', () => {
for (const [path, title] of pages) {
expect(routes).toContain(`path: '${path}'`)
expect(routes).toContain(`title: '${title}'`)
expect(navigation).toContain(`path: '/${path}'`)
expect(navigation).toContain(`title: '${title}'`)
}
expect(routes.match(/path: 'finance\//g)).toHaveLength(5)
expect(navigation.match(/path: '\/finance\//g)).toHaveLength(5)
expect(routes.match(/path: 'finance\/customer-accounts\/:customerId'/g)).toHaveLength(1)
expect(routes.match(/path: 'finance\/customer-arap\/:feeSourceId'/g)).toHaveLength(1)
expect(navigation).not.toContain('/finance/customer-accounts/:customerId')
expect(navigation).not.toContain('/finance/customer-arap/:feeSourceId')
})
it('does not expose the old three routes or out-of-scope reports', () => {