进行了一些小优化
This commit is contained in:
@@ -41,3 +41,15 @@ test('native and front-end surfaces expose immutable business numbers', () => {
|
||||
assert.match(read('assets/js/order-center.js'), /\["流水号", order\.flow_number \|\| "—"\]/)
|
||||
assert.match(read('inc/helpers/user-center-renderers/credits-wallet.php'), /withdrawal_number/)
|
||||
})
|
||||
|
||||
test('balance history renders withdrawal numbers from the committed flow', () => {
|
||||
const query = read('src/Ledger/LedgerQuery.php')
|
||||
const profile = read('inc/helpers/user-center-renderers/profile-credits.php')
|
||||
const wallet = read('inc/helpers/user-center-renderers/credits-wallet.php')
|
||||
assert.match(query, /LEFT JOIN \{\$flow_table\} f ON f\.ledger_transaction_id = t\.id/)
|
||||
assert.match(query, /'withdrawal_number'\s*=>\s*\(string\)/)
|
||||
for (const source of [profile, wallet]) {
|
||||
assert.match(source, /\['withdraw_hold', 'withdraw_refund'\]/)
|
||||
assert.match(source, /\$row\['withdrawal_number'\]/)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user