test: Change lenght(…) == 0 to Enum.empty?(…)
This commit is contained in:
parent
8bb7e19b38
commit
74579115a7
5 changed files with 19 additions and 19 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue