feat: allow lang configuration (#288)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Benjamin Geets
2022-06-26 13:37:18 +02:00
committed by GitHub
co-authored by Luca Casonato
parent ad8aa1cbca
commit ef25682725
2 changed files with 19 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
import { template } from "./render.tsx";
import { assertStringIncludes } from "../../tests/deps.ts";
Deno.test("check lang", () => {
const lang = "fr";
const body = template({
bodyHtml: "",
headComponents: [],
imports: [],
preloads: [],
styles: [],
lang: lang,
});
assertStringIncludes(body, `<html lang="${lang}">`);
});