summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_utils_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-01-20 14:42:43 +0000
committerlain <lain@soykaf.club>2020-01-20 14:42:43 +0000
commit6a716e3fe5290df80af72e3ad5e45ee3afb581a8 (patch)
tree837f45778625fa67d41c9dc60ccd346cad67cd12 /test/web/common_api/common_api_utils_test.exs
parent42ea480e95862c09c07f6b4711648c192a66fdf5 (diff)
parent5c533e10e73d92b753d9ac20b2d7ab14f42649b2 (diff)
downloadpleroma-6a716e3fe5290df80af72e3ad5e45ee3afb581a8.tar.gz
pleroma-6a716e3fe5290df80af72e3ad5e45ee3afb581a8.zip
Merge branch 'credo/version-bump-1.1.5' into 'develop'
Bump credo to 1.1.5 See merge request pleroma/pleroma!2115
Diffstat (limited to 'test/web/common_api/common_api_utils_test.exs')
-rw-r--r--test/web/common_api/common_api_utils_test.exs8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/web/common_api/common_api_utils_test.exs b/test/web/common_api/common_api_utils_test.exs
index 2588898d0..4b761e039 100644
--- a/test/web/common_api/common_api_utils_test.exs
+++ b/test/web/common_api/common_api_utils_test.exs
@@ -307,7 +307,7 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
{to, cc} = Utils.get_to_and_cc(user, mentions, nil, "private", nil)
assert length(to) == 2
- assert length(cc) == 0
+ assert Enum.empty?(cc)
assert mentioned_user.ap_id in to
assert user.follower_address in to
@@ -323,7 +323,7 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
{to, cc} = Utils.get_to_and_cc(user, mentions, activity, "private", nil)
assert length(to) == 3
- assert length(cc) == 0
+ assert Enum.empty?(cc)
assert mentioned_user.ap_id in to
assert third_user.ap_id in to
@@ -338,7 +338,7 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
{to, cc} = Utils.get_to_and_cc(user, mentions, nil, "direct", nil)
assert length(to) == 1
- assert length(cc) == 0
+ assert Enum.empty?(cc)
assert mentioned_user.ap_id in to
end
@@ -353,7 +353,7 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
{to, cc} = Utils.get_to_and_cc(user, mentions, activity, "direct", nil)
assert length(to) == 2
- assert length(cc) == 0
+ assert Enum.empty?(cc)
assert mentioned_user.ap_id in to
assert third_user.ap_id in to