mirror of https://github.com/sveltejs/svelte
parent
b94d7adfec
commit
b3f009122b
@ -1,12 +1,12 @@
|
|||||||
export default {
|
export default {
|
||||||
data: {
|
data: {
|
||||||
name: 'world'
|
characters: ['a', 'b', 'c']
|
||||||
},
|
},
|
||||||
|
|
||||||
test ( assert, component, target ) {
|
test ( assert, component, target ) {
|
||||||
assert.equal(
|
assert.equal(
|
||||||
target.textContent,
|
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 {
|
export default {
|
||||||
data: {
|
data: {
|
||||||
characters: ['a', 'b', 'c']
|
name: 'world'
|
||||||
},
|
},
|
||||||
|
|
||||||
test ( assert, component, target ) {
|
test ( assert, component, target ) {
|
||||||
assert.equal(
|
assert.equal(
|
||||||
target.textContent,
|
target.textContent,
|
||||||
`a b c `
|
`Hello world! How are you?`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
@ -1,3 +1 @@
|
|||||||
{#each characters as char}
|
<h1>Hello <strong>{name}! </strong><span>How are you?</span></h1>
|
||||||
<span>{char} </span>
|
|
||||||
{/each}
|
|
||||||
|
Loading…
Reference in new issue