优化
This commit is contained in:
@@ -138,6 +138,24 @@ test('run behavior preserves null IDs and deployment blockers when supplier, vou
|
||||
assert.ok(context.steps.some((step) => step.deploymentBlocker && step.name.includes('voucherFileId')))
|
||||
})
|
||||
|
||||
test('run reports missing measurement prerequisites without throwing or borrowing historical fixtures', async () => {
|
||||
const context = fakeContext()
|
||||
context.financeFixtureHooks = {
|
||||
...hookSet(),
|
||||
measureOrder: async () => null,
|
||||
}
|
||||
|
||||
await run(context)
|
||||
|
||||
const fixture = context.createdResources.financeFullFixtures
|
||||
assert.equal(fixture.orders.length, 0)
|
||||
assert.deepEqual(fixture.container, { containerBookingId: null, containerNo: null })
|
||||
assert.deepEqual(fixture.allocations, [])
|
||||
assert.equal(fixture.prerequisites.container.category, 'container-prerequisite')
|
||||
assert.ok(fixture.deploymentBlocker.some((item) => item.includes('缺少已完成柜次')))
|
||||
assert.ok(context.steps.some((step) => step.deploymentBlocker && step.name.includes('真实订单/运单分摊')))
|
||||
})
|
||||
|
||||
test('manual fee approval path keeps accountId as a query parameter', () => {
|
||||
assert.match(source, /basePath = `\/api\/platform\/v1\/inbounds\/.*fee-details`/)
|
||||
assert.match(source, /\$\{basePath\}\/\$\{feeId\}\/approve\?accountId=/)
|
||||
|
||||
Reference in New Issue
Block a user