summaryrefslogtreecommitdiff
path: root/test/web
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/web
parent8bb7e19b3814e261e66c2d3592d146f72d4ce623 (diff)
downloadpleroma-74579115a73d697aed67abe2dc8ea1a664c89c5b.tar.gz
pleroma-74579115a73d697aed67abe2dc8ea1a664c89c5b.zip
test: Change `lenght(…) == 0` to `Enum.empty?(…)`
Diffstat (limited to 'test/web')
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs2
-rw-r--r--test/web/websub/websub_controller_test.exs2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs
index 9fd505f84..19393f355 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -36,7 +36,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|> assign(:user, user)
|> get("/api/v1/timelines/home")
- assert length(json_response(conn, 200)) == 0
+ assert Enum.empty?(json_response(conn, 200))
{:ok, user} = User.follow(user, following)
diff --git a/test/web/websub/websub_controller_test.exs b/test/web/websub/websub_controller_test.exs
index 04fb4a5a3..87b01d89b 100644
--- a/test/web/websub/websub_controller_test.exs
+++ b/test/web/websub/websub_controller_test.exs
@@ -81,7 +81,7 @@ defmodule Pleroma.Web.Websub.WebsubControllerTest do
assert response(conn, 500) == "Error"
- assert length(Repo.all(Activity)) == 0
+ assert Enum.empty?(Repo.all(Activity))
end
end
end