mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
helpers: Fix broken test
This commit is contained in:
parent
d32fd8e328
commit
a58741a172
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ func TestChromaHTMLHighlight(t *testing.T) {
|
||||||
result, err := spec.Highlight(`echo "Hello"`, "bash", "")
|
result, err := spec.Highlight(`echo "Hello"`, "bash", "")
|
||||||
assert.NoError(err)
|
assert.NoError(err)
|
||||||
|
|
||||||
assert.Contains(result, `<code class="language-bash" data-lang="bash"><span class="nb">echo</span><span class=""> </span><span class="s2">"Hello"</span></code>`)
|
assert.Contains(result, `<div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash"><span class="nb">echo</span> <span class="s2">"Hello"</span></code></pre></div>`)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue