Preload /api/pleroma/frontend_configurations, fixes #1932
This commit is contained in:
parent
42b4b95467
commit
83ae45b000
4 changed files with 24 additions and 5 deletions
|
|
@ -45,4 +45,12 @@ defmodule Pleroma.Web.Preload.Providers.InstanceTest do
|
|||
assert metadata.private == false
|
||||
assert metadata.suggestions == %{enabled: false}
|
||||
end
|
||||
|
||||
test "it renders the frontend configurations", %{
|
||||
"/api/pleroma/frontend_configurations" => fe_configs
|
||||
} do
|
||||
assert %{
|
||||
pleroma_fe: %{background: "/images/city.jpg", logo: "/static/logo.png"}
|
||||
} = fe_configs
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue