Skip to content

Commit

Permalink
test text and plain in highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed Jun 21, 2016
1 parent b4d8673 commit 3deedac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/Acetate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,24 @@ test('should highlight code with a built in helper', t => {
{% highlight 'js' %}
var foo = bar;
{% endhighlight %}
{% highlight 'text' %}
foo
{% endhighlight %}
{% highlight 'plain' %}
foo
{% endhighlight %}
`);

const expected = stripIndent`
<pre><code class="actionscript"><span class="hljs-keyword">var</span> foo = bar;</code></pre>
<pre><code class="js"><span class="hljs-keyword">var</span> foo = bar;</code></pre>
<pre><code class="text">foo</code></pre>
<pre><code class="plain">foo</code></pre>
`;

return acetate.renderer.renderPage(page).then(output => {
Expand Down

0 comments on commit 3deedac

Please sign in to comment.