diff --git a/test/runtime/samples/whitespace-each-block/_config.js b/test/runtime/samples/whitespace-each-block/_config.js index a196aa2236..98849ce141 100644 --- a/test/runtime/samples/whitespace-each-block/_config.js +++ b/test/runtime/samples/whitespace-each-block/_config.js @@ -1,12 +1,12 @@ export default { data: { - name: 'world' + characters: ['a', 'b', 'c'] }, test ( assert, component, target ) { assert.equal( target.textContent, - `Hello world! How are you?` + `a b c ` ); } }; \ No newline at end of file diff --git a/test/runtime/samples/whitespace-each-block/main.html b/test/runtime/samples/whitespace-each-block/main.html index c845c255dd..cf8511fe39 100644 --- a/test/runtime/samples/whitespace-each-block/main.html +++ b/test/runtime/samples/whitespace-each-block/main.html @@ -1 +1,3 @@ -

Hello {name}! How are you?

+{#each characters as char} + {char} +{/each} \ No newline at end of file diff --git a/test/runtime/samples/whitespace-normal/_config.js b/test/runtime/samples/whitespace-normal/_config.js index 98849ce141..a196aa2236 100644 --- a/test/runtime/samples/whitespace-normal/_config.js +++ b/test/runtime/samples/whitespace-normal/_config.js @@ -1,12 +1,12 @@ export default { data: { - characters: ['a', 'b', 'c'] + name: 'world' }, test ( assert, component, target ) { assert.equal( target.textContent, - `a b c ` + `Hello world! How are you?` ); } }; \ No newline at end of file diff --git a/test/runtime/samples/whitespace-normal/main.html b/test/runtime/samples/whitespace-normal/main.html index cf8511fe39..c845c255dd 100644 --- a/test/runtime/samples/whitespace-normal/main.html +++ b/test/runtime/samples/whitespace-normal/main.html @@ -1,3 +1 @@ -{#each characters as char} - {char} -{/each} \ No newline at end of file +

Hello {name}! How are you?