Preload: Load the correct instance panel
This commit is contained in:
parent
34c9446cb1
commit
2382a2a151
3 changed files with 14 additions and 1 deletions
|
|
@ -25,6 +25,17 @@ defmodule Pleroma.Web.Preload.Providers.InstanceTest do
|
|||
)
|
||||
end
|
||||
|
||||
test "it works with overrides" do
|
||||
clear_config([:instance, :static_dir], "test/fixtures/preload_static")
|
||||
|
||||
%{"/instance/panel.html": panel} = Instance.generate_terms(nil)
|
||||
|
||||
assert String.contains?(
|
||||
panel,
|
||||
"HEY!"
|
||||
)
|
||||
end
|
||||
|
||||
test "it renders the node_info", %{"/nodeinfo/2.0": nodeinfo} do
|
||||
%{
|
||||
metadata: metadata,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue