feat: add lang to <html> (#47)

This commit is contained in:
Luca Casonato
2021-08-06 18:36:04 +02:00
committed by GitHub
parent 0777c1c7ba
commit 384daf0e06
2 changed files with 13 additions and 1 deletions
+1
View File
@@ -10,6 +10,7 @@ Deno.test("/ page prerender", async () => {
assertEquals(resp.status, 200);
assertEquals(resp.headers.get("content-type"), "text/html; charset=utf-8");
const body = await resp.text();
assertStringIncludes(body, `<html lang="en">`);
assertStringIncludes(body, "index.js");
assertStringIncludes(body, "<p>Hello!</p>");
assertStringIncludes(body, "<p>Viewing JIT render.</p>");