优化
This commit is contained in:
@@ -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' }
|
||||
|
||||
Reference in New Issue
Block a user