优化
This commit is contained in:
@@ -16,6 +16,14 @@ import { normalizeModuleOrder } from '../admin-test-env-acceptance.mjs'
|
||||
const source = readFileSync(new URL('./phase3-container-documents.mjs', import.meta.url), 'utf8')
|
||||
const entry = readFileSync(new URL('../admin-test-env-acceptance.mjs', import.meta.url), 'utf8')
|
||||
|
||||
test('document applicability resolves exact released booking rather than missing container channel', () => {
|
||||
assert.match(source, /bookingId = id\(detail.container.oceanBookingId\)/)
|
||||
assert.match(source, /id\(booking\?\.id\) !== bookingId/)
|
||||
assert.match(source, /booking\?\.status !== 'RELEASED'/)
|
||||
assert.match(source, /applicableDocumentTypes\(booking.channelCode\)/)
|
||||
assert.doesNotMatch(source, /applicableDocumentTypes\(detail.container.channelCode\)/)
|
||||
})
|
||||
|
||||
test('destination clearance and delivery order documents are frozen while pickup uses the cabinet code', () => {
|
||||
assert.deepEqual(DOCUMENT_TYPES, [
|
||||
'DESTINATION_CLEARANCE', 'DELIVERY_ORDER',
|
||||
|
||||
Reference in New Issue
Block a user