This commit is contained in:
2026-08-15 11:12:25 +08:00
parent 709dacad98
commit 9cc24436d9
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -120,7 +120,6 @@ export interface ProductImageUploadResult {
}
export interface FirstLegOrderSaveRequest {
customerId?: number | string
customerName: string
transportMode: ApiTransportMode
tradeTerm?: string
@@ -111,6 +111,7 @@ test('sends backend-required channel, pricing, customs, destination and cargo fi
}
assert.match(storeSource, /containerMode: draft\.transportMode === 'FCL' \? 'FULL_CONTAINER'/)
assert.doesNotMatch(storeSource, /customerId: draft\.shipperPartyId/)
assert.doesNotMatch(apiSource, /interface FirstLegOrderSaveRequest \{[^}]*customerId\??:/s)
assert.match(storeSource, /customerName: customerName\.trim\(\)/)
assert.match(storeSource, /destinationWarehouseId: draft\.destinationType === 'PRIVATE' \? undefined : draft\.destinationWarehouseId/)
assert.match(storeSource, /draft\.pickupMethod === 'PICKUP'.*draft\.shipperPartySnapshot/s)