shithub: hugo

Download patch

ref: a58741a172421b2d66c34e81a56ece147e295a05
parent: d32fd8e328bc989e4ee83fdfac6f94ed6f6eda33
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Oct 4 05:27:15 EDT 2017

helpers: Fix broken test

--- a/helpers/pygments_test.go
+++ b/helpers/pygments_test.go
@@ -141,7 +141,7 @@
 	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>`)
 
 }