18 lines
558 B
TypeScript
18 lines
558 B
TypeScript
import assert from 'node:assert/strict'
|
|
import test from 'node:test'
|
|
import { buildSfExpressExportRows } from './sf-express-settlement-export.ts'
|
|
|
|
test('export rows match the settlement list columns', () => {
|
|
const rows = buildSfExpressExportRows([
|
|
{
|
|
waybillNo: '',
|
|
createByName: '张三',
|
|
createTime: '2026-10-21 09:00:00',
|
|
settleStatusLabel: '未结算',
|
|
freightAmountLabel: '月结',
|
|
settleTime: ''
|
|
}
|
|
])
|
|
assert.deepEqual(rows[0], ['—', '张三', '2026-10-21 09:00:00', '未结算', '月结', '—'])
|
|
})
|