Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
macifell committed Sep 23, 2024
1 parent 1ce16a9 commit 976cb88
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 976cb88

Please sign in to comment.