diff --git a/test/recognizer_web/controllers/accounts/user_registration_controller_test.exs b/test/recognizer_web/controllers/accounts/user_registration_controller_test.exs index ff946a0..7190800 100644 --- a/test/recognizer_web/controllers/accounts/user_registration_controller_test.exs +++ b/test/recognizer_web/controllers/accounts/user_registration_controller_test.exs @@ -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 diff --git a/test/recognizer_web/controllers/accounts/user_session_controller_test.exs b/test/recognizer_web/controllers/accounts/user_session_controller_test.exs index 6c0d426..11dd6a9 100644 --- a/test/recognizer_web/controllers/accounts/user_session_controller_test.exs +++ b/test/recognizer_web/controllers/accounts/user_session_controller_test.exs @@ -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