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.
17 lines
355 B
17 lines
355 B
7 years ago
|
export default {
|
||
|
'skip-ssr': true, // SSR behaviour is awkwardly different
|
||
|
|
||
|
data: {
|
||
|
foo: 42
|
||
|
},
|
||
|
|
||
|
html: `<textarea></textarea>`,
|
||
|
|
||
|
test ( assert, component, target ) {
|
||
|
const textarea = target.querySelector( 'textarea' );
|
||
|
assert.strictEqual( textarea.value, '42' );
|
||
|
|
||
|
component.set({ foo: 43 });
|
||
|
assert.strictEqual( textarea.value, '43' );
|
||
|
}
|
||
|
};
|