mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
308 B
23 lines
308 B
8 years ago
|
export default {
|
||
|
'skip-ssr': true,
|
||
|
|
||
|
data: {
|
||
|
value: 'hello!'
|
||
|
},
|
||
|
|
||
|
html: `
|
||
|
<p>hello!</p>
|
||
|
<p>hello!</p>
|
||
|
`,
|
||
|
|
||
|
test ( assert, component, target ) {
|
||
|
component.set({ value: 'goodbye!' });
|
||
|
assert.htmlEqual( target.innerHTML, `
|
||
|
<p>goodbye!</p>
|
||
|
<p>goodbye!</p>
|
||
|
` );
|
||
|
|
||
|
component.destroy();
|
||
|
}
|
||
|
};
|