From 688377ce0bee1669809d0955d9f67e822b40967e Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Thu, 14 Dec 2023 16:24:23 -0500 Subject: [PATCH] Fix failing Markdown tests --- tests/markdown/mustache-syntax.test.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/markdown/mustache-syntax.test.js b/tests/markdown/mustache-syntax.test.js index 8bbf88763..a8a87fea9 100644 --- a/tests/markdown/mustache-syntax.test.js +++ b/tests/markdown/mustache-syntax.test.js @@ -105,10 +105,9 @@ describe('Inline: When using the Inline syntax {{ }}', ()=>{ }); - it.failing('Renders a mustache span with text with quotes and css property which contains double and simple quotes', function() { + it('Renders a mustache span with text with quotes and css property which contains double and simple quotes', function() { const source = `{{--stringVariable:"'string'" text "with quotes"}}`; const rendered = Markdown.render(source); - // FIXME: adds extra \s after class names expect(rendered, `Input:\n${source}`, { showPrefix: false }).toBe(`text “with quotes”`); }); @@ -118,8 +117,6 @@ describe('Inline: When using the Inline syntax {{ }}', ()=>{ const rendered = Markdown.render(source); expect(rendered, `Input:\n${source}`, { showPrefix: false }).toBe('text'); }); - - }); // BLOCK SYNTAX @@ -180,12 +177,11 @@ describe(`Block: When using the Block syntax {{tags\\ntext\\n}}`, ()=>{ expect(rendered, `Input:\n${source}`, { showPrefix: false }).toBe(`

Sample text.

`); }); - it.failing('Renders a div with a style that has a string variable, and text', function() { + it('Renders a div with a style that has a string variable, and text', function() { const source = dedent`{{--stringVariable:"'string'" Sample text. }}`; const rendered = Markdown.render(source).trimReturns(); - // FIXME: adds two extra \s before closing `>` in opening tag expect(rendered, `Input:\n${source}`, { showPrefix: false }).toBe(`

Sample text.

`); }); @@ -194,7 +190,6 @@ describe(`Block: When using the Block syntax {{tags\\ntext\\n}}`, ()=>{ Sample text. }}`; const rendered = Markdown.render(source).trimReturns(); - // FIXME: adds two extra \s before closing `>` in opening tag expect(rendered, `Input:\n${source}`, { showPrefix: false }).toBe(`

Sample text.

`); });