From 09c711eaf7eb2ad9967b62b3054673fb101c7030 Mon Sep 17 00:00:00 2001 From: Nahlee Naria Khan <95993773+renee-k@users.noreply.github.com> Date: Wed, 24 Jul 2024 15:30:53 -0400 Subject: [PATCH] fixed xml like test cases --- .../tests/unified-latex-to-xml-like.test.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/unified-latex-to-pretext/tests/unified-latex-to-xml-like.test.ts b/packages/unified-latex-to-pretext/tests/unified-latex-to-xml-like.test.ts index 2f613e84..687bd2ed 100644 --- a/packages/unified-latex-to-pretext/tests/unified-latex-to-xml-like.test.ts +++ b/packages/unified-latex-to-pretext/tests/unified-latex-to-xml-like.test.ts @@ -26,21 +26,15 @@ describe("unified-latex-to-pretext:unified-latex-to-xml-like", () => { expect(file.value).toEqual("\\html-tag:p{a}\\html-tag:p{b}"); file = process("\\bfseries a\n\nb"); - expect(file.value).toEqual( - '\\html-tag:p{\\html-tag:b{\\html-attr:className{"textbf"}a}}\\html-tag:p{\\html-tag:b{\\html-attr:className{"textbf"}b}}' - ); + expect(file.value).toEqual("\\html-tag:p{\\html-tag:alert{a}}\\html-tag:p{\\html-tag:alert{b}}") file = process("\\bf a\n\nb"); - expect(file.value).toEqual( - '\\html-tag:p{\\html-tag:b{\\html-attr:className{"textbf"}a}}\\html-tag:p{\\html-tag:b{\\html-attr:className{"textbf"}b}}' - ); + expect(file.value).toEqual("\\html-tag:p{\\html-tag:alert{a}}\\html-tag:p{\\html-tag:alert{b}}"); file = process( "\\begin{enumerate}\\item foo\\item bar\\end{enumerate}" ); - expect(file.value).toEqual( - '\\html-tag:ol{\\html-attr:className{"enumerate"}\\html-tag:li{\\html-tag:p{foo}}\\html-tag:li{\\html-tag:p{bar}}}' - ); + expect(file.value).toEqual("\\html-tag:ol{\\html-tag:li{\\html-tag:p{foo}}\\html-tag:li{\\html-tag:p{bar}}}"); }); it("can accept custom replacers", () => {