projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hide the sender when privacy option is enabled
[akkoma]
/
test
/
web
/
push
/
impl_test.exs
diff --git
a/test/web/push/impl_test.exs
b/test/web/push/impl_test.exs
index 9121d90e743eca90b157e9e450038597026f1cb3..3de9118105651f9e69c2e765edb9545bb17d3fd9 100644
(file)
--- a/
test/web/push/impl_test.exs
+++ b/
test/web/push/impl_test.exs
@@
-63,12
+63,12
@@
defmodule Pleroma.Web.Push.ImplTest do
activity: activity
)
activity: activity
)
- assert Impl.perform(notif) ==
[:ok, :ok]
+ assert Impl.perform(notif) ==
{:ok, [:ok, :ok]}
end
@tag capture_log: true
test "returns error if notif does not match " do
end
@tag capture_log: true
test "returns error if notif does not match " do
- assert Impl.perform(%{}) ==
:error
+ assert Impl.perform(%{}) ==
{:error, :unknown_type}
end
test "successful message sending" do
end
test "successful message sending" do
@@
-209,8
+209,7
@@
defmodule Pleroma.Web.Push.ImplTest do
object = Object.normalize(activity)
assert Impl.build_content(notif, actor, object) == %{
object = Object.normalize(activity)
assert Impl.build_content(notif, actor, object) == %{
- body: "@Bob",
- title: "New Direct Message"
+ body: "New Direct Message"
}
end
}
end