Skip to content

Commit

Permalink
Add additional integration test to ensure backward compatibility and …
Browse files Browse the repository at this point in the history
…prevent regression
  • Loading branch information
crphang committed Mar 10, 2020
1 parent ef6de5b commit 0bb9ee9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/functional/test_site/expected/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,11 @@ <h1 id="markbind-plugin-pre-render">Markbind Plugin Pre-render<a class="fa fa-an
</div>
<h2 class="no-index" id="level-2-header-inside-headingsearchindex-with-no-index-attribute-should-not-be-indexed">Level 2 header (inside headingSearchIndex) with no-index attribute should not be indexed<a class="fa fa-anchor" href="#level-2-header-inside-headingsearchindex-with-no-index-attribute-should-not-be-indexed"></a></h2>
<h6 class="always-index" id="level-6-header-outside-headingsearchindex-with-always-index-attribute-should-be-indexed">Level 6 header (outside headingSearchIndex) with always-index attribute should be indexed<a class="fa fa-anchor" href="#level-6-header-outside-headingsearchindex-with-always-index-attribute-should-be-indexed"></a></h6>
<p><strong>Test NunjuckUtils</strong></p>
<div>
<p>The standard trick to render braces still works {<span>{ content }</span>}.</p>
<p>Nonexistent variables should still be removed: . In the rare event that user wrapped an unknown variable inside a raw tag, it should retain its current behaviour and not be produced to ensure Vue does not break.</p>
</div>
<hr class="footnotes-sep">
<section class="footnotes">
<ol class="footnotes-list">
Expand Down
4 changes: 4 additions & 0 deletions test/functional/test_site/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,3 +285,7 @@ tags: ["tag-frontmatter-shown", "tag-included-file", "+tag-exp*", "-tag-exp-hidd
## Level 2 header (inside headingSearchIndex) with no-index attribute should not be indexed {.no-index}

###### Level 6 header (outside headingSearchIndex) with always-index attribute should be indexed {.always-index}

**Test NunjuckUtils**

<include src="testNunjuckUtils.md" />
7 changes: 7 additions & 0 deletions test/functional/test_site/testNunjuckUtils.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{%raw%}

The standard trick to render braces still works {<span>{ content }</span>}.

Nonexistent variables should still be removed: {{ unknown_variable }}. In the rare event that user wrapped an unknown variable inside a raw tag, it should retain its current behaviour and not be produced to ensure Vue does not break.

{%endraw%}

0 comments on commit 0bb9ee9

Please sign in to comment.