Skip to content

Commit ba8dfad

Browse files
test: added inner locals not json test
1 parent 0a33f85 commit ba8dfad

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<h1>index</h1>
2+
3+
<h2>{{ text }}</h2>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<h1>index</h1>
2+
3+
<include src="./test/fixtures/includes/3.html">
4+
text: fail
5+
</include>

test/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ test('Inner locals', t => {
4141
return process(t, 'inner-locals')
4242
})
4343

44+
test('Inner locals not json', t => {
45+
return process(t, 'inner-locals-not-json')
46+
})
47+
4448
test('Shoult not cut children elements', t => {
4549
return process(t, 'not-clear-rest')
4650
})

0 commit comments

Comments
 (0)