diff options
author | Roman Chvanikov <chvanikoff@pm.me> | 2020-01-21 19:45:13 +0300 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@pm.me> | 2020-01-21 19:45:13 +0300 |
commit | 22e94bb2c7a4de93a741b7ca45148cee4a0d601a (patch) | |
tree | c1e388a0d21ff768d8b53bc53662d96cbc3d2ae1 /test/notification_test.exs | |
parent | cde828ff7df64740f36b2fc9dfdbfc8d76a8a78d (diff) | |
parent | 04c9ca5d68eb4d9c8abc82a91d5df3c483089b9b (diff) | |
download | pleroma-22e94bb2c7a4de93a741b7ca45148cee4a0d601a.tar.gz pleroma-22e94bb2c7a4de93a741b7ca45148cee4a0d601a.zip |
Merge branch 'develop' into fix/attachments-cleanup
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r-- | test/notification_test.exs | 4 |
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 |