Fix Credo issues
authorrinpatch <rinpatch@sdf.org>
Sat, 1 Jun 2019 18:42:29 +0000 (21:42 +0300)
committerrinpatch <rinpatch@sdf.org>
Sat, 1 Jun 2019 18:42:29 +0000 (21:42 +0300)
test/web/mastodon_api/mastodon_api_controller_test.exs

index 24fd319d3de14f9cfa925743c97c2050235ffefd..9c1db37dbfe156564f01849c5d04727732a8c5e7 100644 (file)
@@ -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