15 lines
332 B
TypeScript
15 lines
332 B
TypeScript
|
import { template } from "./render.ts";
|
||
|
import { assertStringIncludes } from "../../tests/deps.ts";
|
||
|
|
||
|
Deno.test("check lang", () => {
|
||
|
const lang = "fr";
|
||
|
const body = template({
|
||
|
bodyHtml: "",
|
||
|
headComponents: [],
|
||
|
imports: [],
|
||
|
preloads: [],
|
||
|
lang,
|
||
|
});
|
||
|
assertStringIncludes(body, `<html lang="${lang}">`);
|
||
|
});
|