tests were wrong way round

pull/1637/head
Rich Harris 7 years ago
parent b94d7adfec
commit b3f009122b

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

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

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

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

Loading…
Cancel
Save