test: Change lenght(…) == 0 to Enum.empty?(…)

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-02-11 00:08:48 +01:00
commit 74579115a7
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
5 changed files with 19 additions and 19 deletions

View file

@ -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"