projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#114] Added UserInviteToken creation, adjusted invitation email link to include it.
[akkoma]
/
test
/
web
/
node_info_test.exs
diff --git
a/test/web/node_info_test.exs
b/test/web/node_info_test.exs
index a6376453caf6807b585f00d941b4cfb95750194c..a5b0b7869b8594a71e5912bc0bd34afe5d582d86 100644
(file)
--- a/
test/web/node_info_test.exs
+++ b/
test/web/node_info_test.exs
@@
-4,7
+4,7
@@
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}})
+ user = insert(:user, %{local: true, info: %{
is_moderator:
true}})
conn =
conn
conn =
conn
@@
-15,7
+15,7
@@
defmodule Pleroma.Web.NodeInfoTest do
assert user.ap_id in result["metadata"]["staffAccounts"]
end
assert user.ap_id in result["metadata"]["staffAccounts"]
end
- test "returns 404 when federation is disabled" do
+ test "returns 404 when federation is disabled"
, %{conn: conn}
do
instance =
Application.get_env(:pleroma, :instance)
|> Keyword.put(:federating, false)
instance =
Application.get_env(:pleroma, :instance)
|> Keyword.put(:federating, false)
@@
-37,7
+37,7
@@
defmodule Pleroma.Web.NodeInfoTest do
Application.put_env(:pleroma, :instance, instance)
end
Application.put_env(:pleroma, :instance, instance)
end
- test "returns 200 when federation is enabled" do
+ test "returns 200 when federation is enabled"
, %{conn: conn}
do
conn
|> get("/.well-known/nodeinfo")
|> json_response(200)
conn
|> get("/.well-known/nodeinfo")
|> json_response(200)