test: Change lenght(…) == 0 to Enum.empty?(…)
This commit is contained in:
parent
8bb7e19b38
commit
74579115a7
5 changed files with 19 additions and 19 deletions
|
|
@ -197,7 +197,7 @@ defmodule Pleroma.FormatterTest do
|
|||
|
||||
{subs, text} = Formatter.add_user_links({[], text}, mentions)
|
||||
|
||||
assert length(subs) == 0
|
||||
assert Enum.empty?(subs)
|
||||
Enum.each(subs, fn {uuid, _} -> assert String.contains?(text, uuid) end)
|
||||
|
||||
expected_text = "@a hi"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue