This commit is contained in:
2026-08-07 18:44:55 +08:00
parent 2425e0cac1
commit 38a0ffd3e3
9 changed files with 272 additions and 40 deletions
@@ -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 () => {