优化
This commit is contained in:
@@ -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/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user