fix(overseas-pda): stabilize receiving state flow
This commit is contained in:
@@ -16,7 +16,11 @@ test('receiving adapter preserves the three signed photo roles in workflow order
|
||||
})
|
||||
|
||||
test('receiving adapter exposes calculable candidate facts and workflow errors', () => {
|
||||
const candidate = normalizeReceivingCandidate({ destinationCodes: ['ONT8', 'LAX'], plannedPalletCount: 4, currentAccount: true })
|
||||
const candidate = normalizeReceivingCandidate({ containerNo: ' C10000000 ', status: 'WAIT_SIGN', planCount: 15, inboundCodeCount: 15, destinationCodes: ['ONT8', 'LAX'], plannedPalletCount: 4, currentAccount: true })
|
||||
assert.equal(candidate.containerNo, 'C10000000')
|
||||
assert.equal(candidate.status, 'WAIT_SIGN')
|
||||
assert.equal(candidate.planCount, 15)
|
||||
assert.equal(candidate.inboundCodeCount, 15)
|
||||
assert.deepEqual(candidate.destinationCodes, ['ONT8', 'LAX'])
|
||||
assert.equal(candidate.plannedPalletCount, 4)
|
||||
assert.equal(candidate.currentAccount, true)
|
||||
|
||||
Reference in New Issue
Block a user