19 lines
487 B
TypeScript
19 lines
487 B
TypeScript
import { PFile, PFiles } from "./file.ts";
|
|
import { DocuBuilder } from "./pdf_builder/builder.ts";
|
|
|
|
Deno.test("PFiles initialization", () => {
|
|
const pfiles = new PFiles("./test_example_data");
|
|
//console.log(pfiles);
|
|
});
|
|
|
|
Deno.test("PDF generate", async () => {
|
|
const builder = new DocuBuilder();
|
|
try {
|
|
await builder.with_browser();
|
|
builder.with_files_sync("./test_example_data");
|
|
await builder.build_as_pdf();
|
|
} finally {
|
|
await builder.close_browser();
|
|
}
|
|
});
|