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