name discard

This commit is contained in:
shibao 2023-02-26 00:38:00 -05:00
parent 4f0f3ec610
commit bd5dd57c6c

View File

@ -512,7 +512,7 @@ defmodule Lokal.AccountsTest do
test "deletes all tokens for the given user", %{user: user} do
_session_token = Accounts.generate_user_session_token(user)
{:ok, _} = Accounts.reset_user_password(user, %{"password" => "new valid password"})
{:ok, _user} = Accounts.reset_user_password(user, %{"password" => "new valid password"})
refute Repo.get_by(UserToken, user_id: user.id)
end
end