summaryrefslogtreecommitdiff
path: root/test/formatter_test.exs
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-02-11 00:08:48 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-02-11 03:44:16 +0100
commit74579115a73d697aed67abe2dc8ea1a664c89c5b (patch)
tree043460e4e6ce27d65dbcfdf9b02df661d120f93b /test/formatter_test.exs
parent8bb7e19b3814e261e66c2d3592d146f72d4ce623 (diff)
downloadpleroma-74579115a73d697aed67abe2dc8ea1a664c89c5b.tar.gz
pleroma-74579115a73d697aed67abe2dc8ea1a664c89c5b.zip
test: Change `lenght(…) == 0` to `Enum.empty?(…)`
Diffstat (limited to 'test/formatter_test.exs')
-rw-r--r--test/formatter_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/formatter_test.exs b/test/formatter_test.exs
index 2e717194b..f14077d25 100644
--- a/test/formatter_test.exs
+++ b/test/formatter_test.exs
@@ -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"