-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix contract carrier behavior when using non-default package type
- Loading branch information
1 parent
cf6fc10
commit 58d1dc2
Showing
3 changed files
with
173 additions
and
48 deletions.
There are no files selected for viewing
143 changes: 143 additions & 0 deletions
143
apps/delivery-options/src/composables/__snapshots__/useDeliveryMomentOptions.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`useDeliveryMomentOptions > returns delivery moment options with package type digital_stamp 1`] = ` | ||
[ | ||
{ | ||
"carrier": "postnl", | ||
"label": { | ||
"key": "packageTypeDigitalStamp", | ||
}, | ||
"price": 0, | ||
"value": { | ||
"carrier": "postnl", | ||
"date": null, | ||
"deliveryType": "standard", | ||
"packageType": "digital_stamp", | ||
"shipmentOptions": [], | ||
"time": null, | ||
}, | ||
}, | ||
{ | ||
"carrier": "postnl:123", | ||
"label": { | ||
"key": "packageTypeDigitalStamp", | ||
}, | ||
"price": 4, | ||
"value": { | ||
"carrier": "postnl:123", | ||
"date": null, | ||
"deliveryType": "standard", | ||
"packageType": "digital_stamp", | ||
"shipmentOptions": [], | ||
"time": null, | ||
}, | ||
}, | ||
] | ||
`; | ||
|
||
exports[`useDeliveryMomentOptions > returns delivery moment options with package type mailbox 1`] = ` | ||
[ | ||
{ | ||
"carrier": "postnl", | ||
"label": { | ||
"key": "packageTypeMailbox", | ||
}, | ||
"price": 0, | ||
"value": { | ||
"carrier": "postnl", | ||
"date": null, | ||
"deliveryType": "standard", | ||
"packageType": "mailbox", | ||
"shipmentOptions": [], | ||
"time": null, | ||
}, | ||
}, | ||
{ | ||
"carrier": "postnl:123", | ||
"label": { | ||
"key": "packageTypeMailbox", | ||
}, | ||
"price": 5, | ||
"value": { | ||
"carrier": "postnl:123", | ||
"date": null, | ||
"deliveryType": "standard", | ||
"packageType": "mailbox", | ||
"shipmentOptions": [], | ||
"time": null, | ||
}, | ||
}, | ||
] | ||
`; | ||
|
||
exports[`useDeliveryMomentOptions > returns delivery moment options with package type package 1`] = ` | ||
[ | ||
{ | ||
"carrier": "postnl", | ||
"label": { | ||
"key": "deliveryStandardTitle", | ||
}, | ||
"price": 3, | ||
"value": { | ||
"carrier": "postnl", | ||
"deliveryType": "standard", | ||
"packageType": "package", | ||
"shipmentOptions": [], | ||
"time": { | ||
"key": "deliveryStandardTitle", | ||
}, | ||
}, | ||
}, | ||
{ | ||
"carrier": "postnl:123", | ||
"label": { | ||
"key": "deliveryStandardTitle", | ||
}, | ||
"price": 456, | ||
"value": { | ||
"carrier": "postnl:123", | ||
"deliveryType": "standard", | ||
"packageType": "package", | ||
"shipmentOptions": [], | ||
"time": { | ||
"key": "deliveryStandardTitle", | ||
}, | ||
}, | ||
}, | ||
] | ||
`; | ||
|
||
exports[`useDeliveryMomentOptions > returns delivery moment options with package type package_small 1`] = ` | ||
[ | ||
{ | ||
"carrier": "postnl", | ||
"label": { | ||
"key": "packageTypePackageSmall", | ||
}, | ||
"price": 6, | ||
"value": { | ||
"carrier": "postnl", | ||
"date": null, | ||
"deliveryType": "standard", | ||
"packageType": "package_small", | ||
"shipmentOptions": [], | ||
"time": null, | ||
}, | ||
}, | ||
{ | ||
"carrier": "postnl:123", | ||
"label": { | ||
"key": "packageTypePackageSmall", | ||
}, | ||
"price": 0, | ||
"value": { | ||
"carrier": "postnl:123", | ||
"date": null, | ||
"deliveryType": "standard", | ||
"packageType": "package_small", | ||
"shipmentOptions": [], | ||
"time": null, | ||
}, | ||
}, | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters