fix style issues
This commit is contained in:
@ -310,7 +310,7 @@ defmodule Cannery.AccountsTest do
|
||||
test "deletes all tokens for the given user", %{user: user} do
|
||||
_session_token = Accounts.generate_user_session_token(user)
|
||||
|
||||
{:ok, _} =
|
||||
{:ok, _user} =
|
||||
Accounts.update_user_password(user, valid_user_password(), %{
|
||||
password: "new valid password"
|
||||
})
|
||||
|
@ -57,8 +57,8 @@ defmodule Cannery.Fixtures do
|
||||
|> Atom.to_string()
|
||||
|> Email.generate_email(Accounts.get_user!(user_id), attrs)
|
||||
|
||||
[_, html_token | _] = email.html_body |> String.split("[TOKEN]")
|
||||
[_, text_token | _] = email.text_body |> String.split("[TOKEN]")
|
||||
[_prefix, html_token | _suffix] = email.html_body |> String.split("[TOKEN]")
|
||||
[_prefix, text_token | _suffix] = email.text_body |> String.split("[TOKEN]")
|
||||
^text_token = html_token
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user