This commit is contained in:
2026-10-22 11:56:47 +08:00
parent 5d71af1ac9
commit de96e47d74
71 changed files with 1296 additions and 332 deletions
@@ -295,11 +295,12 @@ test('pool orchestration keeps native one-main boundaries, explicit reviews and
assert.match(source, /actual: false/)
assert.match(source, /arranged\.booking\.dispatchNo === fixture\.dispatchNo/)
assert.match(source, /\['submit-review', 'dispatch-review', 'loading-review'\]/)
const pick = source.indexOf('const namespace = await pickPoolDispatch('), load = source.indexOf('await confirmFleetLoading('), arrange = source.indexOf('await arrangeDispatchDelivery('), depart = source.indexOf("const departed = await request('POST', departPath")
const pick = source.indexOf('const namespace = await pickPoolDispatch('), load = source.indexOf('await confirmFleetLoading('), arrange = source.indexOf('await readAutomaticDispatchDelivery('), depart = source.indexOf("const readyTask = await request('GET'")
assert.ok(pick > 0 && pick < load && load < arrange && arrange < depart)
assert.match(source, /fixture\.loadingMeasurements/)
assert.match(source, /recordVersion: current\.recordVersion/)
assert.match(source, /readyTask\.actions\?\.DEPART\?\.allowed === true/)
assert.match(source, /readyTask\.stage === 'DELIVERING'/)
assert.doesNotMatch(source, /\/depart`|\/transfer-delivery/)
assert.match(source, /JSON\.stringify\(actual\.fees\) === JSON\.stringify\(signed\.fees\)/)
assert.match(source, /sameCustomerOrders\.every\(source => actual\.operations\.filter/)
})