优化
This commit is contained in:
@@ -116,7 +116,7 @@ test('container UI locks and signs once, then renders the resolved destination g
|
||||
|
||||
assert.match(inboundApi, /\$\{RECEIVING_BASE\}\/\$\{encodeURIComponent\(containerNo\)\}\/prepare/)
|
||||
assert.match(inboundApi, /current\('\/sign'\)/)
|
||||
assert.match(operation, /prepareReceivingContainer\(this\.selected\.containerNo, \{ idempotencyKey: key\.value \}\)/)
|
||||
assert.match(operation, /prepareReceivingContainer\(this\.selected\.containerNo, this\.selected\.sourceContainerBookingId, \{ idempotencyKey: key\.value \}\)/)
|
||||
assert.match(operation, /getCurrentReceiving\(\)[\s\S]*applyCurrentReceiving\(current\)/)
|
||||
assert.match(operation, /applyWarehouseProfile\(await getCurrentWarehouseProfile\(\)\)/)
|
||||
assert.match(operation, /values\.map\(\(item\) => this\.validateReceivingWarehouse/)
|
||||
@@ -139,7 +139,7 @@ test('PDA does not infer container eligibility from partial plan workflow states
|
||||
assert.match(adapter, /allPlansReady: value\.allPlansReady === true/)
|
||||
assert.match(adapter, /operable: value\.operable === true/)
|
||||
assert.match(operation, /if \(!candidate\.operable\) \{ receiving\.selected = candidate; this\.detailOpen = true; return \}/)
|
||||
assert.match(operation, /if \(!this\.selected\?\.containerNo \|\| !this\.selected\?\.allPlansReady \|\| !this\.selected\?\.operable/)
|
||||
assert.match(operation, /if \(!this\.selected\?\.containerNo \|\| !this\.selected\?\.sourceContainerBookingId \|\| !this\.selected\?\.allPlansReady \|\| !this\.selected\?\.operable/)
|
||||
assert.match(operation, /recoverCurrentAfterConflict\(error, true\)/)
|
||||
assert.match(operation, /preserveEvidence \? error : null[\s\S]*this\.candidateError = preserveEvidence \? error : null/)
|
||||
assert.doesNotMatch(inbound, /sort\(/)
|
||||
|
||||
Reference in New Issue
Block a user