preload data into index.html

This commit is contained in:
stwf 2020-05-12 11:08:00 -04:00
commit 29ae5bb771
15 changed files with 532 additions and 156 deletions

View file

@ -16,7 +16,7 @@ defmodule Pleroma.Web.RuntimeStaticPlugTest do
test "overrides index" do
bundled_index = get(build_conn(), "/")
assert html_response(bundled_index, 200) == File.read!("priv/static/index.html")
refute html_response(bundled_index, 200) == "hello world"
File.write!(@dir <> "/index.html", "hello world")