diff --git a/test/index.js b/test/index.js index a2bee49..a5b7f85 100644 --- a/test/index.js +++ b/test/index.js @@ -19,7 +19,7 @@ const config = { const mathjax = require('../lib/filter')(config); const content = '$E=mc^2$'; const comment = ''; -const macros = 'A \vee B \Rarr A'; +const macros = '$A \\vee B \\Rarr A$'; describe('MathJax', () => { @@ -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"'); + }); });