diff options
Diffstat (limited to 'test/notification_test.exs')
| -rw-r--r-- | test/notification_test.exs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/test/notification_test.exs b/test/notification_test.exs index ffa3d4b8c..9a1c2f2b5 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -98,7 +98,7 @@ defmodule Pleroma.NotificationTest do        assert Notification.create_notification(activity, user)      end -    test "it creates a notificatin for the user if the user mutes the activity author" do +    test "it creates a notification for the user if the user mutes the activity author" do        muter = insert(:user)        muted = insert(:user)        {:ok, _} = User.mute(muter, muted) @@ -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 | 
