优化
This commit is contained in:
@@ -120,7 +120,6 @@ export interface ProductImageUploadResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface FirstLegOrderSaveRequest {
|
export interface FirstLegOrderSaveRequest {
|
||||||
customerId?: number | string
|
|
||||||
customerName: string
|
customerName: string
|
||||||
transportMode: ApiTransportMode
|
transportMode: ApiTransportMode
|
||||||
tradeTerm?: string
|
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.match(storeSource, /containerMode: draft\.transportMode === 'FCL' \? 'FULL_CONTAINER'/)
|
||||||
assert.doesNotMatch(storeSource, /customerId: draft\.shipperPartyId/)
|
assert.doesNotMatch(storeSource, /customerId: draft\.shipperPartyId/)
|
||||||
|
assert.doesNotMatch(apiSource, /interface FirstLegOrderSaveRequest \{[^}]*customerId\??:/s)
|
||||||
assert.match(storeSource, /customerName: customerName\.trim\(\)/)
|
assert.match(storeSource, /customerName: customerName\.trim\(\)/)
|
||||||
assert.match(storeSource, /destinationWarehouseId: draft\.destinationType === 'PRIVATE' \? undefined : draft\.destinationWarehouseId/)
|
assert.match(storeSource, /destinationWarehouseId: draft\.destinationType === 'PRIVATE' \? undefined : draft\.destinationWarehouseId/)
|
||||||
assert.match(storeSource, /draft\.pickupMethod === 'PICKUP'.*draft\.shipperPartySnapshot/s)
|
assert.match(storeSource, /draft\.pickupMethod === 'PICKUP'.*draft\.shipperPartySnapshot/s)
|
||||||
|
|||||||
Reference in New Issue
Block a user