This commit is contained in:
2026-08-13 11:57:33 +08:00
parent 5a48992d78
commit 16dc03a2e2
102 changed files with 3656 additions and 120 deletions
@@ -31,3 +31,16 @@ test('Finance 不借用历史来源且缺 fixture 记录 coverage gap', () => {
assert.match(finance, /context\.addCoverageGap\(MODULE, ['"]payable-payment['"]/)
assert.match(finance, /context\.addCoverageGap\(MODULE, ['"]receipt-three-settlements['"]/)
})
test('客户详情财务账单验收覆盖客户过滤、详情结构与查看权限链', () => {
assert.match(finance, /\/api\/platform\/v1\/iam\/authorization\/permissions/)
assert.match(finance, /\/statements\?customerId=\$\{encodeURIComponent\(customerId\)\}/)
assert.match(finance, /statementRows\.every\(\(item\) => id\(item\?\.customerId\) === customerId\)/)
assert.match(finance, /statementRows\.some\(\(item\) => statementId\(item\) === createdStatementId\)/)
assert.match(finance, /\/reconciliation-statements\/\$\{encodeURIComponent\(createdStatementId\)\}/)
assert.match(finance, /id\(statementDetail\?\.customerId\) === customerId/)
assert.match(finance, /statementId\(statementDetail\) === createdStatementId/)
assert.match(finance, /Array\.isArray\(statementDetail\?\.lines\)/)
assert.match(finance, /Array\.isArray\(statementDetail\?\.revisions\)/)
assert.match(finance, /platform:finance:bill:view/)
})