14 lines
538 B
TypeScript
14 lines
538 B
TypeScript
import assert from 'node:assert/strict'
|
|
import { readFile } from 'node:fs/promises'
|
|
import test from 'node:test'
|
|
|
|
test('客服我的钱包展示统一结算虚拟账单入口', async () => {
|
|
const source = await readFile(
|
|
new URL('../src/pages/admin/fund/FundSupportView.tsx', import.meta.url),
|
|
'utf8',
|
|
)
|
|
assert.ok(source.includes('统一结算'), '钱包页必须展示统一结算卡片')
|
|
assert.ok(source.includes('生成虚拟账单,不扣积分或备用金'))
|
|
assert.ok(source.includes('support-wallet-grid'))
|
|
})
|