Skip to content

Commit

Permalink
forcing /checkout to fail via validate_inventory: "true"
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmanvar committed Sep 27, 2024
1 parent f7ce3a9 commit f584096
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ private JSONObject buildJSONPostData(HashMap<String, StoreItem> selectedStoreIte
cart.put("quantities", quantities);
postBody.put("cart", cart);
postBody.put("form", new JSONObject());// This line currently mocks non existent form data
postBody.put("validate_inventory", "true");

Check warning on line 399 in app/src/main/java/com/example/vu/android/empowerplant/MainFragment.java

View check run for this annotation

Codecov / codecov/patch

app/src/main/java/com/example/vu/android/empowerplant/MainFragment.java#L399

Added line #L399 was not covered by tests

} catch (JSONException e) {
ISpan span = Sentry.getSpan();
Expand Down

0 comments on commit f584096

Please sign in to comment.