Preloading: Return correct data for statusnet stuff.

This commit is contained in:
lain 2020-06-26 14:47:38 +02:00
commit 4a7a34ae8c
2 changed files with 7 additions and 5 deletions

View file

@ -9,6 +9,7 @@ defmodule Pleroma.Web.Preload.Providers.StatusNetTest do
setup do: {:ok, StatusNet.generate_terms(nil)}
test "it renders the info", %{"/api/statusnet/config.json": info} do
assert info =~ "<name>Pleroma</name>"
assert {:ok, res} = Jason.decode(info)
assert res["site"]
end
end