This commit is contained in:
2026-08-22 12:24:15 +08:00
parent 76c71a3e5e
commit 866ea58cab
18 changed files with 59 additions and 32 deletions
@@ -13,4 +13,14 @@ describe('last-mile order presentation adapter', () => {
})
expect(row.rejectedAt).toBe('—')
})
it.each([
['RELABEL_APPLICATION', '换标下单'],
['WAREHOUSE_TRANSFER', '仓储转运'],
['RETURN_RELABEL', '退货换标'],
['LOCAL_LOOSEBOARD', '本土散板'],
])('maps %s to its Chinese display name', (orderType, expected) => {
const row = toLastMileOrderListItem({ id: '1', customerId: '100', orderNo: 'LL-1', orderType })
expect(row.orderType).toBe(expected)
})
})