优化
This commit is contained in:
@@ -31,7 +31,24 @@ test('入库通过真实订单测量链保留测量态并最终进入 WAIT_SPLIT
|
||||
assert.match(source, new RegExp(`'${status}'`))
|
||||
}
|
||||
assert.match(source, /\.\/inbound-measurement\.mjs/)
|
||||
assert.match(source, /path\.replace\('\/approve', '\/reject'\)/)
|
||||
assert.match(source, /path\.replace\('\/measurement\/submit', '\/measurements\/reject'\)/)
|
||||
})
|
||||
|
||||
test('FBA 状态样本为订单头和每条货物行提供四个必填标识', () => {
|
||||
assert.match(source, /const shipmentId = `MANUAL-/)
|
||||
assert.match(source, /const referenceId = `STATUS-/)
|
||||
assert.match(source, /const upcNo =/)
|
||||
assert.match(source, /upcNo, shipmentId, referenceId/)
|
||||
})
|
||||
|
||||
test('测量状态截停发生在正确的 HTTP 边界', () => {
|
||||
assert.match(source, /includes\(summary\.mainStatus\)/)
|
||||
assert.doesNotMatch(source, /includes\(summary\.processStatus\)/)
|
||||
assert.match(source, /target === 'MEASURING' && data\(response\)\?\.processStatus === 'MEASURING'/)
|
||||
assert.match(source, /target === 'MEASURE_PENDING' && isSubmit/)
|
||||
assert.match(source, /target === 'MEASURE_REJECTED' && isSubmit/)
|
||||
assert.match(source, /measurements\/reject/)
|
||||
assert.match(source, /expectedVersion: version/)
|
||||
})
|
||||
|
||||
test('入库不可独立保留状态显式阻断', () => {
|
||||
@@ -42,7 +59,8 @@ test('入库不可独立保留状态显式阻断', () => {
|
||||
assert.match(source, /processStatus=WAIT_SPLIT/)
|
||||
assert.match(source, /查询存量 WAIT_SPLIT 样本/)
|
||||
assert.match(source, /没有作废入库单 API/)
|
||||
assert.match(source, /context\.assert\(MODULE, `入库列表保留 \$\{status\}`/)
|
||||
assert.match(source, /recordCoverageGap\(context, `入库列表保留 \$\{status\}`/)
|
||||
assert.match(source, /context\.addCoverageGap\?\./)
|
||||
})
|
||||
|
||||
test('统一订单声明合法可达状态并显式阻断废弃或无 API 状态', () => {
|
||||
|
||||
Reference in New Issue
Block a user