helpers: Fix broken test

This commit is contained in:
Bjørn Erik Pedersen 2017-10-04 09:27:15 +02:00
parent d32fd8e328
commit a58741a172

View file

@ -141,7 +141,7 @@ func TestChromaHTMLHighlight(t *testing.T) {
result, err := spec.Highlight(`echo "Hello"`, "bash", "")
assert.NoError(err)
assert.Contains(result, `<code class="language-bash" data-lang="bash"><span class="nb">echo</span><span class=""> </span><span class="s2">&#34;Hello&#34;</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">&#34;Hello&#34;</span></code></pre></div>`)
}