/user/balance/ 调整
This commit is contained in:
1 parent
815b938363
commit
90fd59b647
3 files changed
+18
-18
No files matched your search
@@ -77,6 +77,14 @@ test('user asset submissions send idempotency keys', () => {
|
||||
}
|
||||
})
|
||||
|
||||
test('profile asset records show order references and only the changed amount', () => {
|
||||
for (const file of ['profile-credits.php', 'credits-transactions.php']) {
|
||||
const source = fs.readFileSync(path.join(root, 'inc', 'helpers', 'user-center-renderers', file), 'utf8')
|
||||
assert.match(source, /\$record_note\s*=\s*\(string\) \$row\['reason'\] === 'points_exchange'[\s\S]*?\(string\) \$row\['ref_key'\]/)
|
||||
assert.doesNotMatch(source, /uc-transactions__balance|交易 #%d|\$row\['fee_minor'\]|\$row\['ref_id'\]/)
|
||||
}
|
||||
})
|
||||
|
||||
test('core asset paths never use floating-point money helpers', () => {
|
||||
const files = [
|
||||
'src/Ledger/AssetAmount.php',
|
||||
|
||||
Reference in new issue
Block a user