diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-02-11 00:08:48 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-02-11 03:44:16 +0100 |
commit | 74579115a73d697aed67abe2dc8ea1a664c89c5b (patch) | |
tree | 043460e4e6ce27d65dbcfdf9b02df661d120f93b /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | 8bb7e19b3814e261e66c2d3592d146f72d4ce623 (diff) | |
download | pleroma-74579115a73d697aed67abe2dc8ea1a664c89c5b.tar.gz pleroma-74579115a73d697aed67abe2dc8ea1a664c89c5b.zip |
test: Change `lenght(…) == 0` to `Enum.empty?(…)`
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 2 |
1 files changed, 1 insertions, 1 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) |