Path: blob/main/tests/smoke/jats/render-manuscript.test.ts
6468 views
/*1* render-manuscript.test.ts2*3* Copyright (C) 2020-2022 Posit Software, PBC4*5*/67import { dirname, join } from "../../../src/deno_ral/path.ts";8import { docs, outputForInput } from "../../utils.ts";9import { ensureMECAValidates, ensureXmlValidatesWithXsd } from "../../verify.ts";10import { testRender } from "../render/render.ts";1112const xsdPath = docs(join("jats", "xsd", "JATS-Archiving-1-2-MathML2-DTD"));1314const testContext = undefined;15const args = undefined;1617// Test a basic manuscript render (this will include a sub-notebook which should18// nonetheless validate)19const input = docs(join("jats", "manuscript", "index.ipynb"));20const output = outputForInput(input, "jats");21const mecaOutput = join(dirname(output.outputPath), "index-meca.zip");2223// Test the article and ensure that it validates24testRender(25input,26"jats",27false,28[ensureXmlValidatesWithXsd(output.outputPath, xsdPath), ensureMECAValidates(mecaOutput)],29testContext,30args31);323334