projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fetcher_test: Remove assert on fake Create having an ap_id
[akkoma]
/
test
/
pleroma
/
web
/
activity_pub
/
views
/
user_view_test.exs
diff --git
a/test/pleroma/web/activity_pub/views/user_view_test.exs
b/test/pleroma/web/activity_pub/views/user_view_test.exs
index 98c7c9d0966ab5c60b766b9c9dbeeb9863cf60d2..f2de4d3327041e54119877bb64fd580f48611d88 100644
(file)
--- a/
test/pleroma/web/activity_pub/views/user_view_test.exs
+++ b/
test/pleroma/web/activity_pub/views/user_view_test.exs
@@
-1,9
+1,9
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.UserViewTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.UserViewTest do
- use Pleroma.DataCase
+ use Pleroma.DataCase
, async: true
import Pleroma.Factory
alias Pleroma.User
import Pleroma.Factory
alias Pleroma.User
@@
-80,6
+80,12
@@
defmodule Pleroma.Web.ActivityPub.UserViewTest do
assert %{"invisible" => true} = UserView.render("service.json", %{user: user})
end
assert %{"invisible" => true} = UserView.render("service.json", %{user: user})
end
+ test "renders AKAs" do
+ akas = ["https://i.tusooa.xyz/users/test-pleroma"]
+ user = insert(:user, also_known_as: akas)
+ assert %{"alsoKnownAs" => ^akas} = UserView.render("user.json", %{user: user})
+ end
+
describe "endpoints" do
test "local users have a usable endpoints structure" do
user = insert(:user)
describe "endpoints" do
test "local users have a usable endpoints structure" do
user = insert(:user)