Commit 5ea739b3 authored by Fred Chasen's avatar Fred Chasen
Browse files

Merge branch 'issue-190-math-style' into 'master'

node.style can be undefined

Closes #190

See merge request !106
parents 51c88fd4 31b32132
Pipeline #456 passed with stage
in 3 minutes and 33 seconds
......@@ -4,7 +4,7 @@ root = true
end_of_line = lf
insert_final_newline = true
[*.js]
[*.{js,html}]
charset = utf-8
indent_style = tab
indent_size = 2
This diff is collapsed.
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe("default", () => {
let page;
beforeAll(async () => {
page = await loadPage("math/math.html");
return page.rendered;
}, TIMEOUT);
afterAll(async () => {
if (!DEBUG) {
await page.close();
}
});
it("math elements should not throw an exception", async () => {
let count = await page.$$eval("math" , (r) => {
// eslint-disable-next-line no-console
return r.length;
});
expect(count).toEqual(96);
});
});
This diff is collapsed.
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe("default", () => {
let page;
beforeAll(async () => {
page = await loadPage("math/mathjax.html");
return page.rendered;
}, TIMEOUT);
afterAll(async () => {
if (!DEBUG) {
await page.close();
}
});
it("mathjax elements should not throw an exception", async () => {
let count = await page.$$eval("mjx-container" , (r) => {
// eslint-disable-next-line no-console
return r.length;
});
expect(count).toEqual(96);
});
});
......@@ -340,7 +340,7 @@ export function isContainer(node) {
return true;
}
if (node.style.display === "none") {
if (node.style && node.style.display === "none") {
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment