Skip to content

Commit 8a81756

Browse files
committed
test: fix mathjax test
1 parent b87e071 commit 8a81756

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/api.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ test('compile the MathJax test', async (t) => {
7676

7777
const textContent = await getPdfTextContent(pdf.content);
7878

79+
console.log({ textContent });
80+
7981
t.true(textContent.startsWith('Formulas with MathJax'));
80-
t.true(textContent.includes('a≠0'));
82+
t.regex(textContent, /a\s\s0/);
8183
});
8284

8385
test('the JS engine is disabled by default', async (t) => {

0 commit comments

Comments
 (0)