提交
This commit is contained in:
@@ -57,7 +57,7 @@ for (const [status, history] of [['PROCESSING', ['APPROVED', 'ACCEPTED', 'PROCES
|
||||
test('approved stop runs after full approval replay, inbound readiness and shared measurement handoff', () => {
|
||||
const source = readFileSync(new URL('./orders.mjs', import.meta.url), 'utf8')
|
||||
const run = source.slice(source.indexOf('export async function run('))
|
||||
const finish = run.indexOf('await finishOrderLifecycle(')
|
||||
const finish = run.lastIndexOf('await finishOrderLifecycle(')
|
||||
for (const fragment of ['await verifyOrderApprovalReplay(', '隔离入库单 marker 来源与可测量状态正确',
|
||||
'context.createdResources.orders.inboundId = inboundId', 'context.context.createdInbound =', '履约任务与本轮订单和客户一致']) {
|
||||
assert.ok(run.indexOf(fragment) >= 0 && run.indexOf(fragment) < finish, fragment)
|
||||
|
||||
Reference in New Issue
Block a user