Files
shanxia2.0/web-admin/scripts/quota-conversion-list.test.ts
T
wuzilongandCursor 8e9536332a feat: 保存运输证件、报销付款和开发流程的当前实现。
补齐证书齐备、证件折算、移动用证和合同绑定,并带上报销批量发放、付款备注以及个人开发流程升级,便于继续讨论已安排计划的调整规则。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 21:42:33 +08:00

23 lines
1.0 KiB
TypeScript

import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
import test from 'node:test'
const desktop = readFileSync(new URL('../src/views/pl/plan-quota/index.vue', import.meta.url), 'utf8')
const mobile = readFileSync(new URL('../src/views/m/pl/plan-cert/PlanTab.vue', import.meta.url), 'utf8')
test('plan cert lists mark a conversion row and keep the view action', () => {
for (const source of [desktop, mobile]) {
assert.match(source, /needsUnitConversion/)
assert.match(source, /需单位换算/)
assert.match(source, /查看用证/)
}
assert.match(desktop, /quota-conversion-row/)
assert.match(mobile, /is-conversion/)
assert.match(desktop, /查看全部/)
assert.match(desktop, /conversionOnly: showAll\.value \? undefined : true/)
const shell = readFileSync(new URL('../src/views/m/pl/plan-cert/index.vue', import.meta.url), 'utf8')
assert.match(shell, /查看全部/)
assert.match(shell, /show-all="showAllPlans"/)
assert.match(mobile, /conversionOnly: props\.showAll \? undefined : true/)
})