summaryrefslogtreecommitdiff
path: root/test/notification_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/notification_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/notification_test.exs')
-rw-r--r--test/notification_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs
index f5f23bb5a..9a1c2f2b5 100644
--- a/test/notification_test.exs
+++ b/test/notification_test.exs
@@ -745,7 +745,7 @@ defmodule Pleroma.NotificationTest do
{:ok, _activity} = CommonAPI.post(blocked, %{"status" => "hey @#{user.nickname}"})
- assert length(Notification.for_user(user, %{with_muted: true})) == 0
+ assert Enum.empty?(Notification.for_user(user, %{with_muted: true}))
end
test "it doesn't return notifications from a domain-blocked user when with_muted is set" do
@@ -755,7 +755,7 @@ defmodule Pleroma.NotificationTest do
{:ok, _activity} = CommonAPI.post(blocked, %{"status" => "hey @#{user.nickname}"})
- assert length(Notification.for_user(user, %{with_muted: true})) == 0
+ assert Enum.empty?(Notification.for_user(user, %{with_muted: true}))
end
test "it returns notifications from muted threads when with_muted is set" do