Skip to content

Commit 04df61b

Browse files
test: added big-json tests for inner locals
1 parent ba8dfad commit 04df61b

4 files changed

Lines changed: 95 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<h1>index</h1>
2+
3+
<ul>
4+
<li>5f80a36f5be511b1fc7afb87</li>
5+
<li>0</li>
6+
<li>0bc2e2bc-69f5-4fa4-9d05-3167ed5e33f2</li>
7+
<li>false</li>
8+
<li>$1,307.93</li>
9+
<li>http://placehold.it/32x32</li>
10+
<li>28</li>
11+
<li>blue</li>
12+
<li>Blankenship Schneider</li>
13+
<li>male</li>
14+
<li>EXOVENT</li>
15+
<li>blankenshipschneider@exovent.com</li>
16+
<li>+1 (885) 459-3832</li>
17+
<li>420 Farragut Place, Brazos, Kentucky, 2848</li>
18+
<li>Ex sit proident velit ut enim dolore. Tempor proident aliqua fugiat tempor excepteur magna anim elit.</li>
19+
<li>2014-06-12T05:37:51 +03:00</li>
20+
<li>-71.554141</li>
21+
<li>-73.693833</li>
22+
</ul>

test/fixtures/includes/5.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<ul>
2+
<li>{{_id}}</li>
3+
<li>{{index}}</li>
4+
<li>{{guid}}</li>
5+
<li>{{isActive}}</li>
6+
<li>{{balance}}</li>
7+
<li>{{picture}}</li>
8+
<li>{{age}}</li>
9+
<li>{{eyeColor}}</li>
10+
<li>{{name}}</li>
11+
<li>{{gender}}</li>
12+
<li>{{company}}</li>
13+
<li>{{email}}</li>
14+
<li>{{phone}}</li>
15+
<li>{{address}}</li>
16+
<li>{{about}}</li>
17+
<li>{{registered}}</li>
18+
<li>{{latitude}}</li>
19+
<li>{{longitude}}</li>
20+
</ul>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<h1>index</h1>
2+
3+
<include src="./test/fixtures/includes/5.html">
4+
{
5+
"_id": "5f80a36f5be511b1fc7afb87",
6+
"index": 0,
7+
"guid": "0bc2e2bc-69f5-4fa4-9d05-3167ed5e33f2",
8+
"isActive": false,
9+
"balance": "$1,307.93",
10+
"picture": "http://placehold.it/32x32",
11+
"age": 28,
12+
"eyeColor": "blue",
13+
"name": "Blankenship Schneider",
14+
"gender": "male",
15+
"company": "EXOVENT",
16+
"email": "blankenshipschneider@exovent.com",
17+
"phone": "+1 (885) 459-3832",
18+
"address": "420 Farragut Place, Brazos, Kentucky, 2848",
19+
"about": "Ex sit proident velit ut enim dolore. Tempor proident aliqua fugiat tempor excepteur magna anim elit.",
20+
"registered": "2014-06-12T05:37:51 +03:00",
21+
"latitude": -71.554141,
22+
"longitude": -73.693833,
23+
"greeting": "Hello, Blankenship Schneider! You have 4 unread messages.",
24+
"favoriteFruit": "banana",
25+
"tags": [
26+
"esse",
27+
"culpa",
28+
"labore",
29+
"sint",
30+
"ut",
31+
"eiusmod",
32+
"consectetur"
33+
],
34+
"friends": [
35+
{
36+
"id": 0,
37+
"name": "Raymond Salinas"
38+
},
39+
{
40+
"id": 1,
41+
"name": "Woodward Sampson"
42+
},
43+
{
44+
"id": 2,
45+
"name": "Christian Long"
46+
}
47+
]
48+
}
49+
</include>

test/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ test('Inner locals not json', t => {
4545
return process(t, 'inner-locals-not-json')
4646
})
4747

48+
test('Inner locals big json', t => {
49+
return process(t, 'inner-locals-big-json')
50+
})
51+
4852
test('Shoult not cut children elements', t => {
4953
return process(t, 'not-clear-rest')
5054
})

0 commit comments

Comments
 (0)