projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preload: Load the correct instance panel
[akkoma]
/
test
/
web
/
preload
/
instance_test.exs
diff --git
a/test/web/preload/instance_test.exs
b/test/web/preload/instance_test.exs
index 42a0d87bc67fa0ab7ca07c6075b948e4848b4de5..df150d7bebc1163aed7bfb7f890d5dd82ae97d76 100644
(file)
--- a/
test/web/preload/instance_test.exs
+++ b/
test/web/preload/instance_test.exs
@@
-25,6
+25,17
@@
defmodule Pleroma.Web.Preload.Providers.InstanceTest do
)
end
)
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,
test "it renders the node_info", %{"/nodeinfo/2.0": nodeinfo} do
%{
metadata: metadata,