优化
This commit is contained in:
@@ -13,3 +13,16 @@ test('reprint and Mojia scan share the same frozen box code variable', () => {
|
||||
assert.match(source, /重复整单打印复用已冻结箱码映射[\s\S]*boxCode=\$\{boxCode\}/)
|
||||
assert.match(source, /const firstScanResponse = await multipartRequest[\s\S]*boxCode, \.\.\.firstDimensions/)
|
||||
})
|
||||
|
||||
test('measurement submission confirms weight evidence before submit', () => {
|
||||
assert.match(source, /files\/measurements\/\$\{tenantId\}\/\$\{inboundId\}/)
|
||||
assert.match(source, /\/weight-results\?\$\{query\(tenantId\)\}/)
|
||||
assert.match(source, /\/weight-results\/\$\{created\.id\}\/confirm\?\$\{query\(tenantId\)\}/)
|
||||
assert.match(source, /createConfirmedWeightEvidence[\s\S]*\/measurement\/submit/)
|
||||
})
|
||||
|
||||
test('measurement fixture derives pallet resources from confirmed image count', () => {
|
||||
assert.match(source, /palletCount: WEIGHING_IMAGE_COUNT/)
|
||||
assert.doesNotMatch(source, /Math\.ceil\(Number\(totalVolumeCbm\)/)
|
||||
assert.doesNotMatch(source, /Math\.ceil\(totalVolume \/ DEFAULT_PALLET_CAPACITY_CBM\)/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user