Skip to content

Commit

Permalink
correct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Sep 18, 2014
1 parent b0875f8 commit 33c6a2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/javascripts/lib/markdown-test.js.es6
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,12 @@ test("Code Blocks", function() {
"<p>hello<br/>world<br/></p>\n\n<p><pre><code class=\"json\">line 1\n\nline 2\n\n\nline3</code></pre></p>",
"it maintains new lines inside a code block with leading content.");

cooked("```text\n<header>hello</header>\n```",
"<p><pre><code class=\"text\">&lt;header&gt;hello&lt;/header&gt;</code></pre></p>",
cooked("```ruby\n<header>hello</header>\n```",
"<p><pre><code class=\"ruby\">&lt;header&gt;hello&lt;/header&gt;</code></pre></p>",
"it escapes code in the code block");

cooked("```text\ntext\n```", "<p><pre><code>text</code></pre></p>", "handles text without adding class");

cooked("```ruby\n# cool\n```",
"<p><pre><code class=\"ruby\"># cool</code></pre></p>",
"it supports changing the language");
Expand Down

0 comments on commit 33c6a2d

Please sign in to comment.