projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'notifications-is-seen' into 'develop'
[akkoma]
/
test
/
web
/
node_info_test.exs
diff --git
a/test/web/node_info_test.exs
b/test/web/node_info_test.exs
index 763549bd109e7dd8c52cbe38f959cb9ea7ceb335..038feecc11a95fa20e092d20d238564f59abbdfd 100644
(file)
--- a/
test/web/node_info_test.exs
+++ b/
test/web/node_info_test.exs
@@
-8,7
+8,8
@@
defmodule Pleroma.Web.NodeInfoTest do
import Pleroma.Factory
test "nodeinfo shows staff accounts", %{conn: conn} do
import Pleroma.Factory
test "nodeinfo shows staff accounts", %{conn: conn} do
- user = insert(:user, %{local: true, info: %{is_moderator: true}})
+ moderator = insert(:user, %{local: true, info: %{is_moderator: true}})
+ admin = insert(:user, %{local: true, info: %{is_admin: true}})
conn =
conn
conn =
conn
@@
-16,7
+17,8
@@
defmodule Pleroma.Web.NodeInfoTest do
assert result = json_response(conn, 200)
assert result = json_response(conn, 200)
- assert user.ap_id in result["metadata"]["staffAccounts"]
+ assert moderator.ap_id in result["metadata"]["staffAccounts"]
+ assert admin.ap_id in result["metadata"]["staffAccounts"]
end
test "nodeinfo shows restricted nicknames", %{conn: conn} do
end
test "nodeinfo shows restricted nicknames", %{conn: conn} do