Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejo committed Sep 11, 2024
1 parent 63c79c4 commit 30450ea
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ class WCShippingLabelStoreTest {
val expectedResult = WCPackagesResult(
listOf(
CustomPackage("Krabica", false, "1 x 2 x 3", 1f),
CustomPackage("Obalka", true, "2 x 3 x 4", 5f)
CustomPackage("Obalka", true, "2 x 3 x 4", 5f),
CustomPackage("Flat Box", true, "5 x 6 x 4", 1f),
CustomPackage("Weird Box", false, "0 x 0 x 0", 0f)
),
listOf(
PredefinedOption("USPS Priority Mail Flat Rate Boxes",
Expand Down
18 changes: 17 additions & 1 deletion example/src/test/resources/wc/shipping-labels-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,25 @@
"is_user_defined": true,
"is_letter": true,
"name": "Obalka",
"inner_dimensions": "2 x 3 x 4",
"outer_dimensions": "2 x 3 x 4",
"box_weight": 5,
"max_weight": 0
},
{
"is_user_defined": true,
"is_letter": true,
"name": "Flat Box",
"dimensions": "5 x 6 x 4",
"box_weight": 1,
"max_weight": 0
},
{
"is_user_defined": true,
"is_letter": false,
"name": "Weird Box",
"weird_dimensions": "2 x 3 x 4",
"box_weight": 0,
"max_weight": 0
}
],
"predefined": {
Expand Down

0 comments on commit 30450ea

Please sign in to comment.