This commit is contained in:
2026-08-13 14:55:50 +08:00
parent 939e90912a
commit ef9852e757
14 changed files with 72 additions and 62 deletions
@@ -39,8 +39,8 @@ test('入库不可独立保留状态显式阻断', () => {
assert.match(source, new RegExp(`${status}:`))
}
assert.match(source, /AutomaticInboundCompletionService 在同一调用内立即从 INBOUNDING 推进 WAIT_SPLIT/)
assert.match(source, /processStatus=INBOUNDED/)
assert.match(source, /查询存量 INBOUNDED 兼容样本/)
assert.match(source, /processStatus=WAIT_SPLIT/)
assert.match(source, /查询存量 WAIT_SPLIT 样本/)
assert.match(source, /没有作废入库单 API/)
assert.match(source, /context\.assert\(MODULE, `入库列表保留 \$\{status\}`/)
})
@@ -48,7 +48,7 @@ test('入库不可独立保留状态显式阻断', () => {
test('统一订单声明合法可达状态并显式阻断废弃或无 API 状态', () => {
assert.match(source, /result\.unifiedOrders\.PENDING_REVIEW/)
assert.match(source, /result\.unifiedOrders\.WAIT_MEASURE/)
for (const status of ['INBOUNDED', 'WAIT_SPLIT', 'LOADING', 'LOADED', 'DELIVERED']) {
for (const status of ['WAIT_SPLIT', 'LOADING', 'LOADED', 'DELIVERED']) {
assert.match(source, new RegExp(`'${status}'`))
}
assert.doesNotMatch(source, /WAIT_SPLIT 标记为历史废弃状态/)