From bf65a9c2a4b0b161fb381e287e868c581251d593 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sat, 6 May 2023 20:48:17 +0800 Subject: [PATCH] Update test case for macros --- test/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"'); + }); });