feat: add auto reload on restart (#70)

This commit adds support for auto reloading open pages when fresh
restarts. This is particularly useful when `deno run` is used with
`--watch`.
This commit is contained in:
Luca Casonato
2021-10-27 01:19:01 +02:00
committed by GitHub
parent f0b96b80c8
commit 95289380f3
4 changed files with 46 additions and 3 deletions
-1
View File
@@ -120,7 +120,6 @@ Deno.test("/static page prerender", async () => {
assertEquals(resp.headers.get("content-type"), "text/html; charset=utf-8");
const body = await resp.text();
assert(!body.includes(`static.js`));
assert(!body.includes(`</script>`));
assertStringIncludes(body, "<p>This is a static page.</p>");
assert(!body.includes("__FRSH_PROPS"));
});