Skip to content

Commit

Permalink
Update test case for macros
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed May 6, 2023
1 parent 0da13f8 commit bf65a9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const config = {
const mathjax = require('../lib/filter')(config);
const content = '$E=mc^2$';
const comment = '<!-- more -->';
const macros = 'A \vee B \Rarr A';
const macros = '$A \\vee B \\Rarr A$';

describe('MathJax', () => {

Expand All @@ -30,4 +30,8 @@ describe('MathJax', () => {
it('comment', () => {
mathjax(`${content}\n${comment}\n${content}`).should.include(comment);
});

it('macro', () => {
mathjax(`${macros}`).should.not.include('fill="red"');
});
});

0 comments on commit bf65a9c

Please sign in to comment.