chore(api): apply rustfmt across modules and tests
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
6c1357ec4d
commit
a4ef6ca49e
@@ -335,12 +335,7 @@ async fn cancelling_a_pending_order_restores_its_coupon() {
|
||||
let shop_id = coupon["shop_id"].as_str().unwrap().to_string();
|
||||
|
||||
add_to_cart(&app, &token, &sku, 2).await;
|
||||
let res = checkout_with(
|
||||
&app,
|
||||
&token,
|
||||
HashMap::from([(shop_id, coupon_id.clone())]),
|
||||
)
|
||||
.await;
|
||||
let res = checkout_with(&app, &token, HashMap::from([(shop_id, coupon_id.clone())])).await;
|
||||
assert_eq!(res.status(), 201);
|
||||
let orders: Vec<serde_json::Value> = res.json().await.unwrap();
|
||||
let order_id = orders[0]["id"].as_str().unwrap().to_string();
|
||||
|
||||
Reference in New Issue
Block a user