0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

tests were wrong way round

This commit is contained in:
Rich Harris 2018-08-05 15:38:09 -04:00
parent b94d7adfec
commit b3f009122b
4 changed files with 8 additions and 8 deletions

View File

@ -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 `
);
}
};

View File

@ -1 +1,3 @@
<h1>Hello <strong>{name}! </strong><span>How are you?</span></h1>
{#each characters as char}
<span>{char} </span>
{/each}

View File

@ -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?`
);
}
};

View File

@ -1,3 +1 @@
{#each characters as char}
<span>{char} </span>
{/each}
<h1>Hello <strong>{name}! </strong><span>How are you?</span></h1>