From fd21bae6295b5a2d80c9da291505cf4e6a1e37ee Mon Sep 17 00:00:00 2001 From: Nahlee Naria Khan <95993773+renee-k@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:15:49 -0400 Subject: [PATCH] fixed a couple more test cases --- .../tests/unified-latex-to-pretext.test.ts | 32 +++++++------------ 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/packages/unified-latex-to-pretext/tests/unified-latex-to-pretext.test.ts b/packages/unified-latex-to-pretext/tests/unified-latex-to-pretext.test.ts index 0baa1f21..1faf3605 100644 --- a/packages/unified-latex-to-pretext/tests/unified-latex-to-pretext.test.ts +++ b/packages/unified-latex-to-pretext/tests/unified-latex-to-pretext.test.ts @@ -39,13 +39,11 @@ describe("unified-latex-to-pretext:unified-latex-to-pretext", () => { html = process("\\bfseries a\n\nb"); expect(html).toEqual( - // '

a

b

' "

a

b

" ); html = process("\\bf a\n\nb"); expect(html).toEqual( - // '

a

b

' "

a

b

" ); }); @@ -153,12 +151,11 @@ describe("unified-latex-to-pretext:unified-latex-to-pretext", () => { ); }); - // haven't fixed all test cases yet it.skip("Converts itemize environments", () => { html = process(`\\begin{itemize}\\item a\\item b\\end{itemize}`); expect(normalizeHtml(html)).toEqual( normalizeHtml( - `` + `` ) ); @@ -168,7 +165,7 @@ describe("unified-latex-to-pretext:unified-latex-to-pretext", () => { ); expect(normalizeHtml(html)).toEqual( normalizeHtml( - `` + `` ) ); @@ -176,6 +173,7 @@ describe("unified-latex-to-pretext:unified-latex-to-pretext", () => { html = process( `\\begin{itemize}before content\\item[x)] a\\item[] b\\end{itemize}` ); + // just this doesn't work expect(normalizeHtml(html)).toEqual( // normalizeHtml(`