优化
This commit is contained in:
@@ -112,6 +112,19 @@ describe('inbound weight OCR API', () => {
|
||||
{ version: 1 },
|
||||
{ params: { tenantId: '10001' } },
|
||||
)
|
||||
|
||||
const confirmWithAdjustment = {
|
||||
version: 0,
|
||||
adjustedWeightValue: 286.125,
|
||||
adjustedWeightUnit: 'KG' as const,
|
||||
adjustmentReason: 'OCR 原值 285.500 KG,人工确认 286.125 KG',
|
||||
}
|
||||
await confirmWeightResult('10001', '20001', '30002', confirmWithAdjustment)
|
||||
expect(http.post).toHaveBeenLastCalledWith(
|
||||
'/platform/v1/first-leg/inbounds/20001/weight-results/30002/confirm',
|
||||
confirmWithAdjustment,
|
||||
{ params: { tenantId: '10001' } },
|
||||
)
|
||||
})
|
||||
|
||||
it('downloads an authenticated image as a blob', async () => {
|
||||
|
||||
Reference in New Issue
Block a user