summaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-01-21 09:23:35 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-01-21 09:23:35 +0300
commit41e233200730dca4a0d6d846d44653eef4de0fec (patch)
tree2920b8740145114b034fcdc860b2bc1b89f406dc /test/notification_test.exs
parenta5db044e579ed9923e610cdf89dff6146d9b0986 (diff)
parentab36459464311389c2929ff1c48537889066a9f8 (diff)
downloadpleroma-41e233200730dca4a0d6d846d44653eef4de0fec.tar.gz
pleroma-41e233200730dca4a0d6d846d44653eef4de0fec.zip
Merge branch 'develop' into feature/tag_feed
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