mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
correct tests
This commit is contained in:
parent
b0875f8332
commit
33c6a2d341
1 changed files with 4 additions and 2 deletions
|
@ -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\"><header>hello</header></code></pre></p>",
|
||||
cooked("```ruby\n<header>hello</header>\n```",
|
||||
"<p><pre><code class=\"ruby\"><header>hello</header></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");
|
||||
|
|
Loading…
Reference in a new issue