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

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