This commit is contained in:
2026-09-01 11:38:42 +08:00
parent 68b584128c
commit 9a3b408de0
7 changed files with 82 additions and 46 deletions
@@ -8,7 +8,7 @@ const measurement = readFileSync(new URL('./inbound-measurement.mjs', import.met
const runner = readFileSync(new URL('../it-test-wait-split-bulk.mjs', import.meta.url), 'utf8')
const warehouseLocationResources = readFileSync(new URL('../../warehouse/src/main/java/com/baiyue/warehouse/service/LocationResourceService.java', import.meta.url), 'utf8')
test('单票随机箱数严格分配到各 SKU 并限制为1到1000', () => {
test('Admin 通用单票支持到1000箱且八千票专项入口限制为300箱', () => {
assert.match(acceptance, /--wait-split-package-count <n>/)
assert.match(acceptance, /wait-split-package-count必须是1-1000的整数或0/)
assert.match(acceptance, /packageCounts\.push\(remaining\)/)
@@ -16,6 +16,7 @@ test('单票随机箱数严格分配到各 SKU 并限制为1到1000', () => {
assert.match(orders, /packageCounts\[index\] \|\| packageCountPerSku/)
assert.match(measurement, /detailPackageCounts\.reduce\(\(sum, count\) => sum \+ count, 0\)/)
assert.match(measurement, /detailPackageCounts\.slice\(0, detailIndex\)/)
assert.match(runner, /boxMax > 300/)
})
test('随机线路只固定义乌仓并从客户真实可计价候选选择', () => {