diff options
| author | rinpatch <rinpatch@sdf.org> | 2019-06-01 21:42:29 +0300 | 
|---|---|---|
| committer | rinpatch <rinpatch@sdf.org> | 2019-06-01 21:42:29 +0300 | 
| commit | cfa588e3574f3083798de6f4e0eca63f00aaf578 (patch) | |
| tree | 28b16699b056be922126701fccc752c577a0e791 | |
| parent | 6bc9e5c020d97edcaaa386bd2ec8e8ec57cb19af (diff) | |
| download | pleroma-cfa588e3574f3083798de6f4e0eca63f00aaf578.tar.gz pleroma-cfa588e3574f3083798de6f4e0eca63f00aaf578.zip | |
Fix Credo issues
| -rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 24fd319d3..9c1db37db 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -3630,8 +3630,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do        assert json_response(conn, 200)        object = Object.get_by_id(object.id) -      assert Enum.all?(object.data["anyOf"], fn %{"replies" => %{"totalItems" => totalItems}} -> -               totalItems == 1 +      assert Enum.all?(object.data["anyOf"], fn %{"replies" => %{"totalItems" => total_items}} -> +               total_items == 1               end)      end @@ -3675,8 +3675,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do        object = Object.get_by_id(object.id) -      refute Enum.any?(object.data["oneOf"], fn %{"replies" => %{"totalItems" => totalItems}} -> -               totalItems == 1 +      refute Enum.any?(object.data["oneOf"], fn %{"replies" => %{"totalItems" => total_items}} -> +               total_items == 1               end)      end    end | 
