projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify notification filtering settings further
[akkoma]
/
test
/
web
/
mastodon_api
/
views
/
scheduled_activity_view_test.exs
diff --git
a/test/web/mastodon_api/views/scheduled_activity_view_test.exs
b/test/web/mastodon_api/views/scheduled_activity_view_test.exs
index ecbb855d4ebaa92fe33662863f9b82f3cf2e0df6..fbfd873effc817ef0dca6ff9173e5b3a1cb41349 100644
(file)
--- a/
test/web/mastodon_api/views/scheduled_activity_view_test.exs
+++ b/
test/web/mastodon_api/views/scheduled_activity_view_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
18
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.MastodonAPI.ScheduledActivityViewTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.MastodonAPI.ScheduledActivityViewTest do
@@
-14,7
+14,7
@@
defmodule Pleroma.Web.MastodonAPI.ScheduledActivityViewTest do
test "A scheduled activity with a media attachment" do
user = insert(:user)
test "A scheduled activity with a media attachment" do
user = insert(:user)
- {:ok, activity} = CommonAPI.post(user, %{
"status" =>
"hi"})
+ {:ok, activity} = CommonAPI.post(user, %{
status:
"hi"})
scheduled_at =
NaiveDateTime.utc_now()
scheduled_at =
NaiveDateTime.utc_now()
@@
-47,7
+47,7
@@
defmodule Pleroma.Web.MastodonAPI.ScheduledActivityViewTest do
expected = %{
id: to_string(scheduled_activity.id),
media_attachments:
expected = %{
id: to_string(scheduled_activity.id),
media_attachments:
- %{
"media_ids" =>
[upload.id]}
+ %{
media_ids:
[upload.id]}
|> Utils.attachments_from_ids()
|> Enum.map(&StatusView.render("attachment.json", %{attachment: &1})),
params: %{
|> Utils.attachments_from_ids()
|> Enum.map(&StatusView.render("attachment.json", %{attachment: &1})),
params: %{