feat: allow lang configuration (#288)
Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
co-authored by
Luca Casonato
parent
ad8aa1cbca
commit
ef25682725
@@ -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}">`);
|
||||
});
|
||||
Reference in New Issue
Block a user