mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
* Move screenshotter coverage collection to Jest testing Fixes #1885. * Update screenshotter-spec.js * Update screenshotter-spec.js Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
20 lines
646 B
JavaScript
20 lines
646 B
JavaScript
const data = require("./screenshotter/ss_data");
|
|
|
|
describe("Screenshotter item", function() {
|
|
for (const key in data) {
|
|
if (data.hasOwnProperty(key)) {
|
|
const item = data[key];
|
|
it(`"${item.tex}" should build successfully`, function() {
|
|
expect(item.tex).toBuild({
|
|
macros: item.macros,
|
|
displayMode: item.display,
|
|
throwOnError: !item.noThrow,
|
|
errorColor: item.errorColor,
|
|
strict: false,
|
|
trust: true, // trust test inputs
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|