projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'config/benchmark' into 'develop'
[akkoma]
/
test
/
web
/
mastodon_api
/
views
/
notification_view_test.exs
diff --git
a/test/web/mastodon_api/views/notification_view_test.exs
b/test/web/mastodon_api/views/notification_view_test.exs
index cd36cb5384cca0bfd0c7f3bb61ad105794a15a56..ba1721e06dd5b9ebf5ec884e5df9d0e9ffffc53e 100644
(file)
--- a/
test/web/mastodon_api/views/notification_view_test.exs
+++ b/
test/web/mastodon_api/views/notification_view_test.exs
@@
-117,6
+117,9
@@
defmodule Pleroma.Web.MastodonAPI.NotificationViewTest do
Pleroma.Web.ActivityPub.ActivityPub.move(old_user, new_user)
Pleroma.Tests.ObanHelpers.perform_all()
Pleroma.Web.ActivityPub.ActivityPub.move(old_user, new_user)
Pleroma.Tests.ObanHelpers.perform_all()
+ old_user = refresh_record(old_user)
+ new_user = refresh_record(new_user)
+
[notification] = Notification.for_user(follower, %{with_move: true})
expected = %{
[notification] = Notification.for_user(follower, %{with_move: true})
expected = %{
@@
-124,7
+127,7
@@
defmodule Pleroma.Web.MastodonAPI.NotificationViewTest do
pleroma: %{is_seen: false},
type: "move",
account: AccountView.render("show.json", %{user: old_user, for: follower}),
pleroma: %{is_seen: false},
type: "move",
account: AccountView.render("show.json", %{user: old_user, for: follower}),
- target: AccountView.render("show.json", %{user:
refresh_record(new_user)
, for: follower}),
+ target: AccountView.render("show.json", %{user:
new_user
, for: follower}),
created_at: Utils.to_masto_date(notification.inserted_at)
}
created_at: Utils.to_masto_date(notification.inserted_at)
}