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:
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…
Reference in New Issue
Block a user