helps manage and harmonise READMEs in many repositories with template files available on deno.land/x/readme_manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
readme-manager/render_test.ts

21 lines
521 B

import { dirname } from "https://deno.land/std@0.146.0/path/mod.ts";
import { render } from "./render.ts";
Deno.test("render", async (t) => {
const testingDir = await Deno.makeTempDir();
const testingFile = await Deno.makeTempFile();
await t.step("renders", async () => {
await render(
testingFile,
dirname(testingFile),
"# hello world",
testingDir,
(_errorMsg: string, _error?: Error) => {},
);
});
await Deno.remove(testingDir);
await Deno.remove(testingFile);
});