From 082a471584353e51806585d8e545dc46a872d7c3 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 5 Aug 2018 15:38:09 -0400 Subject: [PATCH] tests were wrong way round --- test/runtime/samples/whitespace-each-block/_config.js | 4 ++-- test/runtime/samples/whitespace-each-block/main.html | 4 +++- test/runtime/samples/whitespace-normal/_config.js | 4 ++-- test/runtime/samples/whitespace-normal/main.html | 4 +--- 4 files changed, 8 insertions(+), 8 deletions(-) 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?