Skip to content

Commit

Permalink
fixed a failed test case
Browse files Browse the repository at this point in the history
  • Loading branch information
renee-k committed Jul 4, 2024
1 parent 537c71b commit 97f3b2b
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe("unified-latex-to-pretext:unified-latex-to-pretext", () => {

it.skip("wrap pars and streaming commands", () => {
html = process("a\n\nb");
expect(html).toEqual("<p>a</p><p>b</p>"); // CORRECT
expect(html).toEqual("<p>a</p><p>b</p>"); // CORRECT

html = process("\\bfseries a\n\nb");
expect(html).toEqual(
Expand Down Expand Up @@ -272,8 +272,7 @@ describe("unified-latex-to-pretext:unified-latex-to-pretext", () => {
// Custom labels are handled
ast = process(`$a\\text{\\#}b$`);
expect(normalizeHtml(ast)).toEqual(
// normalizeHtml(`<m>a\\text{\\#}b</m>`)
normalizeHtml(`<m>a\\text{#}b</m>`) // needs to be wrapped by <p></p>
normalizeHtml(`<m>a\\text{\\#}b</m>`)
);
});

Expand All @@ -285,9 +284,7 @@ describe("unified-latex-to-pretext:unified-latex-to-pretext", () => {
// normalizeHtml(
// `<p>x</p><p>y</p><div class="display-math">a\\\\b</div><p>z</p>`
// )
normalizeHtml(
`<p>x</p><p>y</p><p><me>a\\\\b</me></p><p>z</p>`
)
normalizeHtml(`<p>x</p><p>y</p><p><me>a\\\\b</me></p><p>z</p>`)
);
});
it.skip("replaces command inside argument", () => {
Expand Down

0 comments on commit 97f3b2b

Please sign in to comment.