feat: add support for middleware (#74)

This commit is contained in:
Luca Casonato
2021-11-01 13:35:41 +01:00
committed by GitHub
parent 6ecd7a680b
commit aa1e1bcdb4
7 changed files with 57 additions and 15 deletions
+1
View File
@@ -10,6 +10,7 @@ Deno.test("/ page prerender", async () => {
assert(resp);
assertEquals(resp.status, 200);
assertEquals(resp.headers.get("content-type"), "text/html; charset=utf-8");
assertEquals(resp.headers.get("server"), "fresh test server");
const body = await resp.text();
assertStringIncludes(body, `<html lang="en">`);
assertStringIncludes(body, "index.js");