This commit is contained in:
2026-10-19 17:02:59 +08:00
parent e0677e7ae7
commit 920a7e083d
5 changed files with 85 additions and 3 deletions
@@ -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)