test leading whitespace in template

pull/31/head
Rich-Harris 8 years ago
parent a82b2e9e05
commit 4e3e6a45b6

@ -0,0 +1,3 @@
<p>just chillin' over here</p>

@ -0,0 +1,26 @@
{
"html": {
"start": 6,
"end": 36,
"type": "Fragment",
"children": [
{
"start": 6,
"end": 36,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 9,
"end": 32,
"type": "Text",
"data": "just chillin' over here"
}
]
}
]
},
"css": null,
"js": null
}

@ -31,7 +31,7 @@ describe( 'svelte', () => {
const solo = exists( `test/parser/${dir}/solo` );
( solo ? it.only : it )( dir, () => {
const input = fs.readFileSync( `test/parser/${dir}/input.html`, 'utf-8' ).trim();
const input = fs.readFileSync( `test/parser/${dir}/input.html`, 'utf-8' );
try {
const actual = parse( input );

Loading…
Cancel
Save