Skip to content

Commit 81e4c46

Browse files
committed
test: add failing expression ignore test
1 parent 7bc1660 commit 81e4c46

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/expect/expression_ignored.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
<p data-username="{{ user.name }}" data-user-id="user-{{ user.id }}-bar-{{ foo }}">
33
Here's one {{ variable }} and here's {{ another }}. And some bar.
44
</p>
5+
6+
ignored: {{ foo }}
7+
ignoredUnescaped: {{{ foo }}}
8+
rendered: bar

test/fixtures/expression_ignored.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
<p data-username="@{{ user.name }}" data-user-id="user-@{{ user.id }}-{{ foo }}-@{{ foo }}">
33
Here's one @{{ variable }} and here's @{{ another }}. And some {{ foo }}.
44
</p>
5+
6+
ignored: @{{ foo }}
7+
ignoredUnescaped: @{{{ foo }}}
8+
rendered: {{ foo }}

0 commit comments

Comments
 (0)