Skip to content

Commit

Permalink
Merge branch 'bc-home-redirect' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
macifell committed Sep 23, 2024
2 parents 6f8beb5 + 976cb88 commit 301af69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ defmodule RecognizerWeb.Accounts.UserRegistrationControllerTest do
|> Jason.decode!(keys: :atoms)

assert redirect =~ "http://localhost/login/"
refute :redirect_to in Map.keys(jwt_payload)
assert %{redirect_to: "/"} = jwt_payload
end

test "redirects to bigcommerce checkout if already logged in", %{conn: conn} do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defmodule RecognizerWeb.Accounts.UserSessionControllerTest do
|> Jason.decode!(keys: :atoms)

assert redirect =~ "http://localhost/login/"
refute :redirect_to in Map.keys(jwt_payload)
assert %{redirect_to: "/"} = jwt_payload
end

test "redirects to bigcommerce checkout if already logged in", %{conn: conn, user: user} do
Expand Down

0 comments on commit 301af69

Please sign in to comment.