diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-07-03 10:36:41 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-07-03 10:36:41 -0500 |
commit | 4695bdd81bf9d2caed4337473d35ba021527e8a8 (patch) | |
tree | 0bc60c1bbc03d994701a282f47d32e856b54cff0 /test/notification_test.exs | |
parent | cc837f9d157f9d43a015a8908f5e2ee178442041 (diff) | |
parent | c2a052a346d5104c3657343a885255d4d7179c75 (diff) | |
download | pleroma-4695bdd81bf9d2caed4337473d35ba021527e8a8.tar.gz pleroma-4695bdd81bf9d2caed4337473d35ba021527e8a8.zip |
Merge branch 'develop' into issue/1790-updated-oban
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r-- | test/notification_test.exs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs index 526f43fab..6add3f7eb 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -22,6 +22,16 @@ defmodule Pleroma.NotificationTest do alias Pleroma.Web.Streamer describe "create_notifications" do + test "never returns nil" do + user = insert(:user) + other_user = insert(:user, %{invisible: true}) + + {:ok, activity} = CommonAPI.post(user, %{status: "yeah"}) + {:ok, activity} = CommonAPI.react_with_emoji(activity.id, other_user, "☕") + + refute {:ok, [nil]} == Notification.create_notifications(activity) + end + test "creates a notification for an emoji reaction" do user = insert(:user) other_user = insert(:user) |