完成单机TEST统一入口与可靠投递回归收尾

This commit is contained in:
2026-09-29 19:48:34 +08:00
parent 64a70c9f28
commit 6c0a026cc4
89 changed files with 968 additions and 983 deletions
@@ -18,7 +18,7 @@ test('merged scenarios remain in default and focused dependency chains', () => {
test('review helper refuses stale fixture before any request', async () => {
const steps = []
await verifyWarehouseTransferReview({ marker: 'current', context: { merchantQualificationFixture: { marker: 'old' } },
addStep: (...args) => steps.push(args), requestOverseas: () => { throw Error('must not request') } }, 'token', '123', {}, 'T1')
addStep: (...args) => steps.push(args), request: () => { throw Error('must not request') } }, 'token', '123', {}, 'T1')
assert.equal(steps.length, 1)
assert.equal(steps[0][3], false)
assert.equal(steps[0][5].deploymentBlocker, true)
@@ -46,7 +46,7 @@ test('draft and removal checks use actual IDs plus readback rather than snapshot
test('fulfillment checks PDF signature, platform replay and immutable pallets after transfer', async () => {
const source = await read('phase5-overseas-fulfillment.mjs')
for (const value of ['requestOverseasBinary', '/prints/bol', "=== '%PDF-'", '/transfer-delivery',
for (const value of ['requestBinary', '/prints/bol', "=== '%PDF-'", '/transfer-delivery',
'adminReplay.data?.replayed', 'conflict(deniedRemove)', 'stable.data?.items?.map'])
assert.ok(source.includes(value), value)
})