优化
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user