This commit is contained in:
2026-09-20 19:45:24 +08:00
parent 80778e017e
commit 93b58fdd6d
4 changed files with 28 additions and 8 deletions
@@ -6,6 +6,14 @@ import { fileURLToPath } from 'node:url'
import { expandOverseasCartonCandidates, resolveCartonFixtures, run, uniqueContainerProducer } from './phase4-overseas-pda.mjs'
test('receiving selects one current booking and supplies mandatory booking identity', () => {
assert.match(source, /id\(item.sourceContainerBookingId\) === preferredBookingId/)
assert.match(source, /matchingCandidates.length === 1/)
assert.match(source, /if \(!longId\(sourceContainerBookingId\)\)/)
assert.match(source, /sourceContainerBookingId=\$\{encodeURIComponent\(sourceContainerBookingId\)\}/)
assert.equal((source.match(/\/prepare\$\{bookingQuery\}/g) || []).length, 3)
})
test('one physical container is received once even when matrix roles overlap', () => {
const fba = { containerNo: 'TEST-C1', fulfillmentType: 'STANDARD' }
const overseas = { containerNo: 'TEST-C2' }