Skip to content

Commit 673ea00

Browse files
committed
test: for issue #40
1 parent bc63258 commit 673ea00

4 files changed

Lines changed: 15 additions & 0 deletions

File tree

test/expected/not-clear-rest.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<p>
2+
<a href="callto:+123456">+123456</a>
3+
<br>
4+
<a href="mailto:email@company.com">email@company.com</a>
5+
</p>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="callto:+123456">+123456</a>

test/fixtures/not-clear-rest.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<p>
2+
<include src="./test/fixtures/blocks/partial/phone.html"></include>
3+
<br>
4+
<a href="mailto:email@company.com">email@company.com</a>
5+
</p>

test/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ test('Locals not json', t => {
3737
return process(t, 'locals-not-json')
3838
})
3939

40+
test('Shoult not cut children elements', t => {
41+
return process(t, 'not-clear-rest')
42+
})
43+
4044
test('addDependency message', t => {
4145
const includePath = require('path').resolve('./test/fixtures/blocks/button/button.html')
4246

0 commit comments

Comments
 (0)