simple-fs-server/fresh-main/src/server/render_test.ts

15 lines
332 B
TypeScript
Raw Normal View History

2023-01-14 03:03:22 +09:00
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}">`);
});