Skip to content

Commit

Permalink
chore: Mix format.
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoTurtle committed Oct 11, 2023
1 parent 830051e commit 112d8ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/app_web/controllers/page_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ defmodule AppWeb.PageControllerTest do
%{conn: conn} do
conn = setup_conn_with_user(conn)

with_mock Stripe.Checkout.Session, retrieve: fn _session_id -> {:error, nil} end do
with_mock Stripe.Checkout.Session,
retrieve: fn _session_id -> {:error, nil} end do
conn = get(conn, ~p"/purchase/success?session_id=123")
assert redirected_to(conn, 303) == ~p"/"
end
Expand All @@ -60,7 +61,8 @@ defmodule AppWeb.PageControllerTest do
%{conn: conn} do
conn = setup_conn_with_user(conn)

with_mock Stripe.Checkout.Session, retrieve: fn _session_id -> {:error, nil} end do
with_mock Stripe.Checkout.Session,
retrieve: fn _session_id -> {:error, nil} end do
conn = get(conn, ~p"/purchase/cancel?session_id=123")
assert redirected_to(conn, 303) == ~p"/"
end
Expand Down

0 comments on commit 112d8ad

Please sign in to comment.