summaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-01-22 21:18:27 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-01-22 21:18:27 +0400
commit5c842e3b680708bedf13a63427e5e853e0184219 (patch)
treeebd6332b1d3257eb582d8c89e368e730b3f5ffac /test/notification_test.exs
parentb6f5b326e7b7b7e209a436190d28ac2a165cb057 (diff)
parent15db18af691f91ae7c834aa65f4b4d11d1c32d4c (diff)
downloadpleroma-5c842e3b680708bedf13a63427e5e853e0184219.tar.gz
pleroma-5c842e3b680708bedf13a63427e5e853e0184219.zip
Merge branch 'develop' into feature/new-registrations-digest
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