simple-fs-server/fresh-main/src/server/render_test.ts
2023-01-14 03:03:22 +09:00

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}">`);
});