fix style issues
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2024-12-30 19:28:05 -05:00
parent 2346a82a46
commit 1e55039a67
7 changed files with 8 additions and 8 deletions

View File

@ -316,7 +316,7 @@ defmodule Memex.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"
})

View File

@ -64,7 +64,7 @@ defmodule Memex.DataCase do
symbols = ~c"0123456789abcdef-"
symbol_count = Enum.count(symbols)
for _ <- Range.new(1, length),
for _index <- 1..length//1,
into: "",
do: <<Enum.at(symbols, :rand.uniform(symbol_count - 1))>>
end

View File

@ -47,8 +47,8 @@ defmodule Memex.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 | _postfix] = email.html_body |> String.split("[TOKEN]")
[_prefix, text_token | _postfix] = email.text_body |> String.split("[TOKEN]")
^text_token = html_token
end