summaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-01-21 10:32:27 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-01-21 10:32:27 +0300
commit503d966e9f7d4c41a1bfbd215b375443a858564a (patch)
tree634499f234fcd8d9f2b81523c66eaaf339ee52f8 /test/notification_test.exs
parentdcae5914d1f7d540e3c20be5988d5e3547a349cd (diff)
parentab36459464311389c2929ff1c48537889066a9f8 (diff)
downloadpleroma-503d966e9f7d4c41a1bfbd215b375443a858564a.tar.gz
pleroma-503d966e9f7d4c41a1bfbd215b375443a858564a.zip
Merge branch 'develop' into admin-be
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