Path: blob/main/tests/smoke/jats/render-jats-metadata.ts
6615 views
/*1* render-jats.test.ts2*3* Copyright (C) 2020-2022 Posit Software, PBC4*5*/67import { extname, join } from "../../../src/deno_ral/path.ts";8import { docs, outputForInput } from "../../utils.ts";9import {10ensureXmlValidatesWithXsd,11} from "../../verify.ts";12import { testRender } from "../render/render.ts";1314const xsdPath = docs(join("jats", "xsd", "JATS-Archiving-1-2-MathML2-DTD"));1516// Test all the documents in this folder17const testDir = docs(join("author-normalization", "funding"));1819for (const entry of Deno.readDirSync(testDir)) {20if (entry.isFile && extname(entry.name) === ".qmd") {21const input = join(testDir, entry.name);22const output = outputForInput(input, "jats");23testRender(input, "jats", true, [ensureXmlValidatesWithXsd(output.outputPath, xsdPath)]);24}25}26272829